Skip to Content
0
Former Member
Jun 16, 2009 at 09:57 AM

Preview Form Shows during Crystal Report Loading Process

30 Views

Hi,

I have a slight issue on the behaviour of my application of how the report is loaded to the user.

Within my application, I have a button that when pressed - shows the print preview form with the report displayed.

The issue I am having - is that in some scenarios - preview form is visible to the user - along with a black screen (presuming a large dataset is being called and rendered) and THEN the report will appear

Code - appears in sub-routine called RunReport

-


'Set up the printer

Call SetReportPrinter()

'Log into the report

Call LogonReport(mReportDocument, crConnectionInfo)

'Apply Parameters to the report

Call SetReportParameters()

CRViewer1.ReportSource = mReportDocument

Me.Show() ' where the form is presented to the user on screen

Is it possible for me to show the preview form to the user - with all results loaded and ready to be displayed - so there is no delay in presenting the results to the user.

pryeshg