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

XtraReport.SaveLayout(String, Boolean) Method

Saves the report's definition (layout and configuration) to a file in the REPX format, with an exception thrown if an error occurs.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll


public void SaveLayout(
    string fileName,
    bool throwOnError
Public Sub SaveLayout(
    fileName As String,
    throwOnError As Boolean


Name Type Description
fileName String

A String containing the full path (including the file name) specifying where the report's definition will be saved.

throwOnError Boolean

true if a ArgumentException exception should be thrown on error; otherwise, false.


A report definition contains all report settings, as well as settings of report controls. To load the report's definition from a REPX file, use the XtraReport.LoadLayout and XtraReport.FromFile methods.

Alternatively, to save a report definition in an XML format, use the XtraReport.SaveLayoutToXml.

To learn more, see Storing Report Layouts.

See Also