load Report form Assemblly .

Stimulsoft Reports.NET discussion
Post Reply
alharbi
Posts: 45
Joined: Wed Sep 05, 2007 1:56 pm
Location: KSA

load Report form Assemblly .

Post by alharbi »

hi,
1-Is it possible to load report from Assemblly (web applcation) ?
2-Is it possible to save report resoult with out preview (web applcation).

If possible, can you write sample code C# vs 2008 .

By Using Our AJAX code, we want to create several reports and then stored on the server to be downloaded Later.

thank you .
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

load Report form Assemblly .

Post by Jan »

Hello,
1-Is it possible to load report from Assemblly (web applcation) ?
Yes, its possible. Please use following code:

Code: Select all

StiReport report = StiReport.GetReportFromAssembly(assembly);
2-Is it possible to save report resoult with out preview (web applcation).
Yes, its possible. For example with this code you can store and restore rendered report to string which you can use as you want:

Code: Select all

StiReport report = new StiReport();
report.Load("1.mrt");
report.Render(false);
string str = report.SaveDocumentToString();
.....................................

Code: Select all

StiReport report = new StiReport();
report.LoadDocumentFromString(str);

Thank you.
alharbi
Posts: 45
Joined: Wed Sep 05, 2007 1:56 pm
Location: KSA

load Report form Assemblly .

Post by alharbi »

Thank you very much for the quick response.
Post Reply