protected void ReportViewer1_CacheReportDocument(object sender, DevExpress.XtraReports.Web.CacheReportDocumentEventArgs e) { e.Key = Guid.NewGuid().ToString(); Page.Session[e.Key] = e.SaveDocumentToMemoryStream(); } protected void ReportViewer1_RestoreReportDocumentFromCache(object sender, DevExpress.XtraReports.Web.RestoreReportDocumentFromCacheEventArgs e) { Stream stream = Page.Session[e.Key] as Stream; if (stream != null) e.RestoreDocumentFromStream(stream); } protected void ReportViewer1_Unload(object sender, EventArgs e) { ((ReportViewer)sender).Report = null; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)