Progress® Telerik® Reporting R3 2018

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) Version: 12.2.18.917 (12.2.18.917)

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

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy