The requested page is not available for the requested platform. You are viewing the content for Default platform.

CacheReportDocumentEventArgs.SaveExportOptionsToStream(Stream) Method

Saves the current report's export options to the specified stream.

Namespace: DevExpress.XtraReports.Web

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


public void SaveExportOptionsToStream(
    Stream stream
Public Sub SaveExportOptionsToStream(
    stream As Stream


Name Type Description
stream Stream

A Stream object to which the export options should be saved.


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

See Also