Progress® Telerik® Reporting R3 2021

ReportXmlSerializer.Serialize Method (String, Object)

Serializes the specified value and writes the XML document to a file with the specified file name.

Namespace:  Telerik.Reporting.XmlSerialization
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)


public void Serialize(
	string fileName,
	Object value


Type: SystemString
The file which you want to write to. The ReportXmlSerializer creates a file at the specified path and writes to it in XML 1.0 text syntax. The fileName must be a file system path.
Type: SystemObject
The value to serialize.


The following example serializes an object using a file path:
Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer =
    new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();

xmlSerializer.Serialize("Report.xml", report);

Version Information

Supported in: 1.0.1

See Also

In this article
Not finding the help you need?