RestoreReportDocumentFromCacheEventArgs.RestoreExportOptionsFromStream(Stream) Method
Loads export options from the specified stream.
Namespace: DevExpress.XtraReports.Web
Assembly: DevExpress.XtraReports.v24.2.Web.WebForms.dll
NuGet Package: DevExpress.Web.Reporting
Declaration
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object, from which the export options should be loaded. |
Remarks
The RestoreExportOptionsFromStream method is intended to restore export options when implementing caching for a web report.
To accomplish this task, you need to handle the ReportViewer.CacheReportDocument event and save export options to a memory stream via the CacheReportDocumentEventArgs.SaveExportOptionsToStream or CacheReportDocumentEventArgs.SaveExportOptionsToMemoryStream method. Then, you need to handle the ReportViewer.RestoreReportDocumentFromCache event, and restore export options via the RestoreExportOptionsFromStream method.