Progress® Telerik® Reporting R3 2017

ReportXmlSerializerDeserialize Method (Stream)

Deserializes the XML document contained by the specified Stream.

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

Syntax

public Object Deserialize(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The Stream that contains the XML document to deserialize.

Return Value

Type: Object
The Telerik.Reporting object being deserialized.

Remarks

Use the stream parameter to specify an object that derives from the Stream class, which is designed to write to streams. Classes that derive from the Stream class include: BufferedStream, FileStream, MemoryStream, etc.

Examples

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

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

See Also