I am using:
- VS2008 v9.0.21022.8 RTM
- .NET Framework v3.5 SP1
- CR2008 v12.3.0.601 product type FULL
- Oracle Server 11g connections
In Visual Studios, I have a Birthday Cards aspx page that contains a month dropdown parameter, a Run button, and a Crystal Report viewer. When the aspx page loads, the month parameter gets set to the current month and the Crystal Reports displays the correct information. When I change the month and click Run the Crystal Reports displays the data for the new month. However, I get a "Load report failed." above the Crystal Report in the Crystal Report viewer.
I can select a different aspx page (different report) and then go back to the Birthday Cards aspx page and it will display the current month's data and the error message does not display.
I have the following code in the MasterPage vb events module:
Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload
myReportDocument.Close()
myReportDocument.Dispose()
uc_CReports.ptyCR_Viewer.ReportSource = Nothing
uc_CReports.ptyCR_Viewer.Dispose()
End Sub
I have the MasterPage aspx do all the work to display the different reports in the web application. Each individual report aspx file just sets up the defaults and parameters.
Anyone have any suggestions?
Thanks!