Skip to main content

XtraReport.LoadLayoutFromXml(Stream, Boolean) Method

Loads a report from a Stream that contains a serialized report in XML format.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v23.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public void LoadLayoutFromXml(
    Stream stream,
    bool throwOnError = false
)

Parameters

Name Type Description
stream Stream

A Stream object that contains the report serialization data.

Optional Parameters

Name Type Default Description
throwOnError Boolean False

True to throw an exception if an error occurs; otherwise, false.

Remarks

TheLoadLayoutFromXml method allows you to deserialize a report from the XML serialization data created with the following methods:

Review the following topics for more information:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LoadLayoutFromXml(Stream, Boolean) 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