Directly to a PDF output in asp.net

Stimulsoft Reports.NET discussion
Post Reply
Tom
Posts: 1
Joined: Sun Jun 11, 2006 4:17 am

Directly to a PDF output in asp.net

Post by Tom »

Hello!

When displaying a report in a browser is it
Possible to go directly to a PDF output and
bypass the Stimulsoft viewer?

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Directly to a PDF output in asp.net

Post by Edward »

For exporting report to pdf file without using dialog box and StimulSoft preview please do the following:

StiReport report = new StiReport();
report.Load("report.mrt");
report.Render();
StiReportResponse.ResponseAsPdf(this, report);
Post Reply