Back to Devexpress

XtraReport.LoadLayoutFromXml(String) Method

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-dot-loadlayoutfromxml-x28-system-dot-string-x29.md

latest3.8 KB
Original Source

XtraReport.LoadLayoutFromXml(String) Method

SECURITY-RELATED CONSIDERATIONS

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

Declaration

csharp
public void LoadLayoutFromXml(
    string fileName
)
vb
Public Sub LoadLayoutFromXml(
    fileName As String
)

Parameters

NameTypeDescription
fileNameString

A String that is the path and name of the file that contains a serialized report.

|

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(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

csharp
XtraReport report = new XtraReport();
report.LoadLayoutFromXml(openfd.FileName);
report.ShowDesignerDialog();

reporting-winforms-custom-xml-serialization/VB/WindowsApplication54/Form1.vb#L48

vb
Dim report As New XtraReport()
report.LoadLayoutFromXml(openfd.FileName)
report.ShowDesignerDialog()

See Also

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace