<pre lang="C#"> protected void Page_PreInit(object sender, EventArgs e) { ReportDocument crystalReport = new ReportDocument(); if (Session["report1"] == null) { crystalReport.Load(Server.MapPath("~/CrystalReports01.rpt")); DataSet dsCustomers = GetData("select * from ACS"); crystalReport.SetDataSource(dsCustomers); Session["report1"] = crystalReport; } else { crystalReport = (ReportDocument)Session["report1"]; } CrystalReportViewer1.ReportSource = crystalReport; }</pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)