|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, October 11, 2012 1:03 PM
Points: 2,
Visits: 14
|
|
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 ?
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Today @ 8:50 AM
Points: 91,
Visits: 97,306
|
|
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.
I believe in Codd ... and Thinknook is my Chamber of Understanding
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, October 11, 2012 1:03 PM
Points: 2,
Visits: 14
|
|
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
|
|
|
|