xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-dot-loadlayoutfromxml-x28-system-dot-string-x29.md
Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.
Loads a report from a file that contains an XML-serialized report.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
public void LoadLayoutFromXml(
string fileName
)
Public Sub LoadLayoutFromXml(
fileName As String
)
| Name | Type | Description |
|---|---|---|
| fileName | String |
A String that is the path and name of the file that contains a serialized report.
|
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(String) 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.
reporting-winforms-custom-xml-serialization/CS/WindowsApplication54/Form1.cs#L43
XtraReport report = new XtraReport();
report.LoadLayoutFromXml(openfd.FileName);
report.ShowDesignerDialog();
reporting-winforms-custom-xml-serialization/VB/WindowsApplication54/Form1.vb#L48
Dim report As New XtraReport()
report.LoadLayoutFromXml(openfd.FileName)
report.ShowDesignerDialog()
See Also