This is a migrated thread and some comments may be shown as answers.

How to display the Reporting After Deserializing in Reportviewer

0 Answers 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
gowthami
Top achievements
Rank 1
gowthami asked on 06 Mar 2012, 04:02 PM
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?


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);
                 
              
            }

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
gowthami
Top achievements
Rank 1
Share this question
or