Skip to main content
A newer version of this page is available. .

CacheReportDocumentEventArgs.SaveExportOptionsToFile(String) Method

Saves the current report’s export options to the specified file.

Namespace: DevExpress.XtraReports.Web

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

Declaration

public void SaveExportOptionsToFile(
    string fileName
)

Parameters

Name Type Description
fileName String

A String value specifying the XML file to which the export options should be saved.

Remarks

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

See Also