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

RestoreReportDocumentFromCacheEventArgs.RestoreExportOptionsFromStream(Stream) Method

Loads export options from the specified stream.

Namespace: DevExpress.XtraReports.Web

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

Declaration

public void RestoreExportOptionsFromStream(
    Stream stream
)
Public Sub RestoreExportOptionsFromStream(
    stream As Stream
)

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.

See Also