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
Parameters
Name | Type | Description |
---|---|---|
fileName | String | A String that specifies a file name for the saved report. |
throwOnError | Boolean |
|
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.