Progress® Telerik® Reporting R3 2017

ReportXmlSerializerSerialize 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)

Syntax

public void Serialize(
	string fileName,
	Object value
)

Parameters

fileName
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.
value
Type: SystemObject
The value to serialize.

Examples

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);

See Also