Display report directly in PDF
-
- Posts: 14
- Joined: Thu May 14, 2009 2:06 am
Display report directly in PDF
Hi All,
On stimulsoft web viewer, when we click on "Print to PDF" option, report is shown in pdf format.
How I can view report in pdf format without the use of web viewer?
Second, when we click on "Print to PDF", there comes a dialog asking whether to "Open" file, "Save" file or "Cancel". When viewing report programatically, I want that dialog should not appear. Instead report should open directly in pdf. How I can achieve this?
On stimulsoft web viewer, when we click on "Print to PDF" option, report is shown in pdf format.
How I can view report in pdf format without the use of web viewer?
Second, when we click on "Print to PDF", there comes a dialog asking whether to "Open" file, "Save" file or "Cancel". When viewing report programatically, I want that dialog should not appear. Instead report should open directly in pdf. How I can achieve this?
Display report directly in PDF
Hello,
//With dialog box
//Without dialog box
Thank you.
You can use following code in PageLoad event of web page:On stimulsoft web viewer, when we click on "Print to PDF" option, report is shown in pdf format.
How I can view report in pdf format without the use of web viewer?
Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report);
You can use two variants:Second, when we click on "Print to PDF", there comes a dialog asking whether to "Open" file, "Save" file or "Cancel". When viewing report programatically, I want that dialog should not appear. Instead report should open directly in pdf. How I can achieve this?
Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report, true);
Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report, false);
Thank you.
-
- Posts: 14
- Joined: Thu May 14, 2009 2:06 am
Display report directly in PDF
Hi Jan,
thanks for the support.
My first problem is solved.
For the second problem, I want to display report on new page, but don't want to display the dialog (having option of "Open","Save" and "Cancel").
If I use following code...
then report is shown on the current page. But I want to show it on new page.
Thanks,
Rajesh Tanwar
thanks for the support.
My first problem is solved.
For the second problem, I want to display report on new page, but don't want to display the dialog (having option of "Open","Save" and "Cancel").
If I use following code...
Code: Select all
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report, false);
Thanks,
Rajesh Tanwar
Display report directly in PDF
Hello,
See the sample in attached archive.
Thank you.
See the sample in attached archive.
Thank you.
- Attachments
-
- 181.ShowPdfInNewPage.zip
- (4.48 KiB) Downloaded 516 times
-
- Posts: 14
- Joined: Thu May 14, 2009 2:06 am
Display report directly in PDF
Hi Vladimir,
Thanks for the sample.
My second problem is also solved.:biggrin:
Regards,
Rajesh Tanwar
Thanks for the sample.
My second problem is also solved.:biggrin:
Regards,
Rajesh Tanwar
-
- Posts: 14
- Joined: Mon Aug 21, 2017 5:10 pm
Re: Display report directly in PDF
Hi..
How can I do it using JS?
How can I do it using JS?
Re: Display report directly in PDF
Hello,
Please check the sample at the following link:
https://www.stimulsoft.com/en/samples/j ... ort-to-pdf
Thank you.
Please check the sample at the following link:
https://www.stimulsoft.com/en/samples/j ... ort-to-pdf
Thank you.