Derializer Report server Report Class 2012 ?

  • serializer And Dserializer Rdlc File

    Report Class

    name space >Microsoft.ReportingServices.ReportRendering

    Microsoft.ReportingServices.ProcessingCore.Dll (2012-06)

    Testing.... > is false

    false= bool myBool = typeof(Report).IsSerializable;

    can't get ReportClass ..... like this

    XmlSerializer serializer = new XmlSerializer(typeof(Rdl1.Report));

    FileStream fs = new FileStream(report_path, FileMode.Open);

    ms = new MemoryStream();

    fs.Position = 0;

    ms.SetLength(fs.Length);

    fs.Read(ms.GetBuffer(), 0, (int)fs.Length);

    ms.Position = 0;

    Report = (Report)serializer.Deserialize(ms);

    i'm, using right now xsd file > with Report defintion class

    > Adding my metods

    how can i use microsoft Report Class Loading rdlc or rdl ?

  • I've never tried this before, but you could potentially look at some of the sample code from Microsoft about how to load an RDLC from a Stream:

    http://archive.msdn.microsoft.com/reportviewer

    -----------------
    ... Then again, I could be totally wrong! Check the answer.
    Check out posting guidelines here for faster more precise answers[/url].

    I believe in Codd
    ... and Thinknook is my Chamber of Understanding

  • loading rdlc works well

    the problem is to DSerializable the stream to the Report class ;

    in this way you can use the report class to create or modify report on run time

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply