Progress® Telerik® Reporting R3 2017

ReportXmlSerializerDeserialize Method (XmlReader)

Deserializes the XML document contained by the specified XmlReader.

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

Syntax

public Object Deserialize(
	XmlReader reader
)

Parameters

reader
Type: System.XmlXmlReader
The XmlReader that contains the XML document to deserialize.

Return Value

Type: Object
The Telerik.Reporting object being deserialized.

Examples

The following example deserializes an object using a XmlReader:
System.Xml.XmlReaderSettings settings = new System.Xml.XmlReaderSettings();
settings.IgnoreWhitespace = true;

using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create("Report1.xml", settings))
{
    Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer =
        new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();

    Telerik.Reporting.Report report = (Telerik.Reporting.Report)
        xmlSerializer.Deserialize(xmlReader);
}

See Also