Today I installed the boxed Crystal version 9. I have created my reports in VS.NET2003 and the version of Crystal that comes with it. SupplierRpt.Subreports( "ComRank" ).SetDataSource(dsOcc.Tables( "ComRank" ))supplierRpt.Subreports( "ResponseTime" ).SetDataSource(dsOcc.Tables( "ResponseSummary" )) supplierRpt.Subreports( "ResponseSummary" ).SetDataSource(dsOcc.Tables( "ResponseSum" ))ĪpplyParams()Session( "supplierRpt" ) = supplierRptĮlse supplierRpt = CType (Session( "supplierRpt" ), ReportDocument)Ĭrystal. SupplierRpt.Subreports( "FailureType" ).SetDataSource(dsOcc.Tables( "FailureType" ))supplierRpt.Subreports( "SupplierRank" ).SetDataSource(dsOcc.Tables( "SupplierRank" )) SupplierRpt.Subreports( "IndexByFailure" ).SetDataSource(dsOcc.Tables( "IndexFail" ))supplierRpt.Subreports( "FailByRank" ).SetDataSource(dsOcc.Tables( "IndexFail" )) SupplierRpt.SetDataSource(dsOcc)supplierRpt.Subreports( "FailOcc" ).SetDataSource(dsOcc.Tables( "FailOcc" )) If (Session( "supplierRpt" ) Is Nothing ) Then supplierRpt = New ReportDocument() supplierRpt.Load(Server.MapPath( "SupplierReport_Final.rpt" )) I had the same problem and here is the solution: Since this is asp, persistence is what you are missing. protected void reporttree_SelectedNodeChanged( object sender, EventArgs e)
So, for example if i click the 'next page' button on crytsal report viewer toolbar the report becomes blank. Reports are displayed as expected but the report disappears after any postback including the report viewer's toolbar buttons. I've put the links in treeview control as nodes and binding the report files on SelectedNodeChanged event. Crystal report viewer should display the reports upon clicking the report file links. I've an asp.net page with links for several report files and a crystal report viewer on the same page.