XtraReport.LoadLayoutFromXml(Stream, Boolean) Method
SECURITY NOTE
Do not open/load files obtained from untrusted sources. Such files may pose a security risk. Please review the following article for additional information:
Suppress Control Requests to Download Data from External URLs
Loads a report from a Stream that contains a serialized report in XML format.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object that contains the report serialization data. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
throwOnError | Boolean | False |
|
Remarks
TheLoadLayoutFromXml
method allows you to deserialize a report from the XML serialization data created with the following methods:
- XtraReport.SaveLayoutToXml
- The Save action in the End-User Designer. Review the following topic for more information: Save Report Layouts.
Review the following topics for more information:
Related GitHub Examples
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.