SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Derializer Report server Report Class 2012 ?


Derializer Report server Report Class 2012 ?

Author
Message
beny.frenkel
beny.frenkel
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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 ?
Thinknook
Thinknook
SSC Veteran
SSC Veteran (213 reputation)SSC Veteran (213 reputation)SSC Veteran (213 reputation)SSC Veteran (213 reputation)SSC Veteran (213 reputation)SSC Veteran (213 reputation)SSC Veteran (213 reputation)SSC Veteran (213 reputation)

Group: General Forum Members
Points: 213 Visits: 164990
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
beny.frenkel
beny.frenkel
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search