Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Derializer Report server Report Class 2012 ? Expand / Collapse
Author
Message
Posted Sunday, October 7, 2012 2:09 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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 ?

Post #1369572
Posted Monday, October 8, 2012 3:26 AM


SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, August 28, 2014 1:50 PM
Points: 91, Visits: 164,496
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
Post #1369684
Posted Monday, October 8, 2012 3:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #1369690
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse