Greetings,
I'm having a similar problem in VB6 with the Report Viewer control. I have a big project, with 67+ forms and 12+ class modules and modules.
I am opening the Report Viewer on an MDI form. Here is some code where I open the Report...
Load frmCRViewer 'this is the MDI form with the viewer
frmCRViewer.Show
Inside the frmCRViewer form, I declare the following form-scope objects:
Private CRXApplication As CRAXDRT.Application
Private CRXReport As CRAXDRT.Report
I then use them in the Form_Load event as follows:
Set CRXApplication = New CRAXDRT.Application
Set CRXReport = CRXApplication.OpenReport("C:\myreport.rpt"
'CRViewer91 is the name of the report viewer control
Me.CRViewer91.ReportSource = CRXReport
Me.CRViewer91.ViewReport
Okay, so I do everything I believe I should be doing. The report opens fine in stand-alone Crystal Reports, and I know there is no database connection or lag issues. If I insert the line
me.CRViewer91.PrintReport
...and set a breakpoint on that line, I get the printer selection dialog and can print the report successfully. There is no data or formatting issues with the report on print.
I've checked the report viewer control to make sure its visible, and I've used the Refresh method on it to see if that might be an issue (it wasn't). I'm at a loss.
The nearest thing I've found in the knowledge base at the Crystal Decisions site is something about the viewer in CR version 8 having some problem with really large projects where it won't display the report.
If you have a clue stick, feel free to whack me with it! Many thanks in advance!