Skip to main content

XtraReport.SaveLayout(String, Boolean) Method

Saves the report definition to a file as a Code Document Object Model (CodeDOM) graph, with an exception thrown if an error occurs.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public void SaveLayout(
    string fileName,
    bool throwOnError
)

Parameters

Name Type Description
fileName String

A String that specifies a file name for the saved report.

throwOnError Boolean

true to throw an exception on error; otherwise, false.

Remarks

A report definition contains all report settings and information about report controls. The SaveLayout method saves a report as a Code Document Object Model (CodeDOM) graph. To save a report definition in XML format, use the XtraReport.SaveLayoutToXml method.

Use the XtraReport.LoadLayout and XtraReport.FromFile methods to load a report.

For more information, review the following help topic: Store Report Layouts.

See Also