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

RestoreReportDocumentFromCacheEventArgs.RestoreExportOptionsFromFile(String) Method

Loads export options from the specified file.

Namespace: DevExpress.XtraReports.Web

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

NuGet Package: DevExpress.Web.Reporting

Declaration

public void RestoreExportOptionsFromFile(
    string fileName
)

Parameters

Name Type Description
fileName String

A String value specifying the XML file, from which the export options should be loaded.

Remarks

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

See Also