Hai !
I am creating new Report dynamically in ClassLibrary.I have Serialized the Report in XML format .I have no Idea for how to display the report after deserialization in reportVIewer?
I am creating new Report dynamically in ClassLibrary.I have Serialized the Report in XML format .I have no Idea for how to display the report after deserialization in reportVIewer?
Serialization code:
private void button1_Click(object sender, EventArgs e)
{
ForSerialization report = new ForSerialization();
using (System.Xml.XmlWriter xmlWriter = System.Xml.XmlWriter.Create("c:/tmp/SerializedReport.xml"))
{
System.Xml.Serialization.XmlSerializer xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(Telerik.Reporting.Report));
xmlSerializer.Serialize(xmlWriter, report);
}
}
deserialization:
private void button2_Click(object sender, EventArgs e)
{
using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create("c:/tmp/SerializedReport.xml"))
{
System.Xml.Serialization.XmlSerializer xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(Telerik.Reporting.Report));
Telerik.Reporting.Report report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
}