Create a PDF report without using webviewer
Posted: Wed Sep 23, 2009 12:13 pm
I need the ability to create a report without using the webviewer control. For example, on a web page, there is a Print button. When the user clicks that button, I want it to open a PDF version of the report. I don't want to display it in a browser.
I thought it was as straight-forward as doing this:
But it bombs on line 2 with Object Reference not set error.
I thought it was as straight-forward as doing this:
Code: Select all
Stimulsoft.Report.Web.StiWebViewer webView = new Stimulsoft.Report.Web.StiWebViewer();
webView.Report = report;
webView.PrintToPdf();