Page 1 of 1

Reports in asp.net

Posted: Mon Aug 25, 2008 1:04 am
by zreptil
Hi there,

i have just another question. Up to now, all my problems could be solved. Thank you for your supprt :)

But now i need to know how to gerate a report using .net asp. It must use the same .mrt-file as a windows-application and there should be no changes to the code when using this report in a web-environment oder in a windows-application. i looked around in the documentation and on this website, but could not find how to present a report to the user in asp.net. How can i do this?

Reports in asp.net

Posted: Mon Aug 25, 2008 9:53 am
by Vital
Hello,
zreptil wrote:Hi there,

i have just another question. Up to now, all my problems could be solved. Thank you for your supprt :)

But now i need to know how to gerate a report using .net asp. It must use the same .mrt-file as a windows-application and there should be no changes to the code when using this report in a web-environment oder in a windows-application. i looked around in the documentation and on this website, but could not find how to present a report to the user in asp.net. How can i do this?
Place on asp.net form StiWebViewer control. After then place in PageLoad event of page following code:

Code: Select all

StiReport report = new StiReport();
report.Load("myreport.mrt");
report.RegData("MyDataSet", MyDataSet);

StiWebViewer1.Report = report;
Thank you.