Progress® Telerik® Reporting R3 2021

ReportXmlSerializer.Deserialize Method (TextReader)

Deserializes the XML document contained by the specified TextReader.

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


public Object Deserialize(
	TextReader reader


Type: System.IOTextReader
The TextReader that contains the XML document to deserialize.

Return Value

Type: Object
The Telerik.Reporting object being deserialized.


Classes that inherit from TextReader include StringReader and StreamReader. If you are using a StreamReader to deserialize an object, you must construct the StreamReader with an appropriate Encoding. The encoding specified by the XML document is ignored.


The following example deserializes an object using a TextReader:
using (System.IO.FileStream fileStream = new System.IO.FileStream("Report1.xml", System.IO.FileMode.Open, System.IO.FileAccess.Read))
using (System.IO.TextReader textReader = new System.IO.StreamReader(fileStream))
    Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer =
        new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();

    Telerik.Reporting.Report report = (Telerik.Reporting.Report)

Version Information

Supported in: 1.0.1

See Also

In this article
Not finding the help you need?