ChrisMac
14 years agoContributor
Crystal Report dialog produces an exception if closed before fully invoked.
Hi -
I've got a Crystal Report dialog where if closed when not fully invoked will produce an exception. I'm using a While statement to wait for the report dialog to fully appear but apparently a statement like:
While Aliases.ReportViewerDialog.Exists <> True
WEnd
ReportViewerDialog.Close
Will close the report dialog before it's fully invoked thus producing the exception. It seems that as soon as any part of that dialog appears then it is considered to "exist" even though either the outer dialog or the inner dialog
"Aliases.crystalReportViewer.PageView.TabControl.DocumentControl.PageControl" window hasn't fully invoked.
My question is, is there a property like "FullyInvoked" for example that waits for either the dialog "ReportViewerDialog" or the inner dialog window "PageControl" to fully invoke before the dialog is closed? Thanks in advance.
Chris
I've got a Crystal Report dialog where if closed when not fully invoked will produce an exception. I'm using a While statement to wait for the report dialog to fully appear but apparently a statement like:
While Aliases.ReportViewerDialog.Exists <> True
WEnd
ReportViewerDialog.Close
Will close the report dialog before it's fully invoked thus producing the exception. It seems that as soon as any part of that dialog appears then it is considered to "exist" even though either the outer dialog or the inner dialog
"Aliases.crystalReportViewer.PageView.TabControl.DocumentControl.PageControl" window hasn't fully invoked.
My question is, is there a property like "FullyInvoked" for example that waits for either the dialog "ReportViewerDialog" or the inner dialog window "PageControl" to fully invoke before the dialog is closed? Thanks in advance.
Chris