protected void DocumentViewer1_RestoreReportDocumentFromCache(object sender, RestoreReportDocumentFromCacheEventArgs e) { Stream stream = Page.Session[e.Key] as Stream; if (stream != null) { e.RestoreDocumentFromStream(stream); } }
protected void DocumentViewer1_RestoreReportDocumentFromCache(object sender, RestoreReportDocumentFromCacheEventArgs e) { if (MergedReportLayout == null) { return; } var stream = new MemoryStream(MergedReportLayout); e.RestoreDocumentFromStream(stream); }
protected void ReportViewer1_RestoreReportDocumentFromCache(object sender, RestoreReportDocumentFromCacheEventArgs e) { try { Stream stream = Page.Session[e.Key] as Stream; if (stream != null) { e.RestoreDocumentFromStream(stream); } } catch (Exception ex) { throw ex; } }
protected void SampleReportViewer_RestoreReportDocumentFromCache(object sender, RestoreReportDocumentFromCacheEventArgs e) { Stream documentCache = (Stream)Session["DocumentCache"]; if (documentCache != null) { e.RestoreDocumentFromStream(documentCache); } }