Page 1 of 1

load Report form Assemblly .

Posted: Thu Feb 26, 2009 1:43 pm
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 .

load Report form Assemblly .

Posted: Thu Feb 26, 2009 3:31 pm
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.

load Report form Assemblly .

Posted: Thu Feb 26, 2009 3:52 pm
by alharbi
Thank you very much for the quick response.