Greetings all,
I am integrating Crystal Reports XI into a large VB.NET 2005 application. I don't use the integrated report designer in VB.NET; I design the reports in the Crystal Reports XI environment, integrate them into a VB.NET assembly, then use the integrated crystal reports viewer (crv) to display the reports. The app runs against an Oracle 10g database.
I have a report that includes two subreports, both in separate group footers. The report worked perfectly until I changed the "New Page After" option in the Section Expert for the group footer that includes the first of the two subreports.
That's the only change I made, but now the report is initially displayed without incident, displaying the first page, but when the user tries to navigate to the second page (the one that would include the first of the two subreports, for which I set the "New Page After" option in Section Expert), a runtime exception occurs in the crv control. The exception is as follows:
Exception.Message: "Object not set to an instance of an object"
Source: "CrystalDecisions.CrystalReports.Engine"
StackTrace: " at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_IsLoaded()
at CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated)
at CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)
at CrystalDecisions.Windows.Forms.MainReportDocument.GetPage(PageRequestContext context)"
The user can navigate to later pages, then back to the first page, without incident, but any attempt to get this particular page - whether viewing the report, saving it to disk, or printing - generates this exception.
I would appreciate any information as to what is causing this error and how to work around it.
Thanks in advance,
Bob