XtraReport.SaveLayout(Stream, Boolean) Method

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

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public void SaveLayout(
    Stream stream,
    bool throwOnError
)
Public Sub SaveLayout(
    stream As Stream,
    throwOnError As Boolean
)

Parameters

Type Name Description
Stream stream

A Stream object to which the report's definition will be saved.

Boolean throwOnError

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.FromStream methods.

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

To learn more, see Storing Report Layouts.

See Also