Skip to main content

CacheReportDocumentEventArgs.SaveExportOptionsToMemoryStream() Method

Saves the current report’s export options to a memory stream.

Namespace: DevExpress.XtraReports.Web

Assembly: DevExpress.XtraReports.v24.2.Web.WebForms.dll

NuGet Package: DevExpress.Web.Reporting

Declaration

public MemoryStream SaveExportOptionsToMemoryStream()

Returns

Type Description
MemoryStream

A MemoryStream object which contains the saved export options as a byte array.

Remarks

The SaveExportOptionsToMemoryStream method is intended to store 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 SaveExportOptionsToMemoryStream method. Then, you need to handle the ReportViewer.RestoreReportDocumentFromCache event, and restore export options via the RestoreReportDocumentFromCacheEventArgs.RestoreExportOptionsFromStream method.

See Also