Skip to main content

XtraReport.SaveLayout(Stream) Method

Saves the report definition to a Stream as a Code Document Object Model (CodeDOM) graph.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public void SaveLayout(
    Stream stream
)

Parameters

Name Type Description
stream Stream

A Stream object to which to save a report.

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.FromStream methods to load a report.

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the SaveLayout(Stream) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also