Reports in asp.net

Stimulsoft Reports.NET discussion
Post Reply
zreptil
Posts: 18
Joined: Tue Aug 19, 2008 1:17 am

Reports in asp.net

Post 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?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Reports in asp.net

Post 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.
Post Reply