Page 1 of 2
how to show "print to pdf" button as asp.net report viewer
Posted: Sat Jan 20, 2018 7:25 am
by chenyb
the button "print to pdf" in asp.net viewer .how to show this button in js viewer?
Re: how to show "print to pdf" button as asp.net report view
Posted: Sat Jan 20, 2018 9:05 am
by Alex K.
Hello,
This option is available in the JS viewer.
Please clarify which version are you use?
Thank you.
Re: how to show "print to pdf" button as asp.net report view
Posted: Sun Jan 21, 2018 3:13 am
by chenyb
download [stimulsoft-reports-2018.1.5-Pack.zip] and get a demo .just show print button
not like the demo :
http://demo.stimulsoft.com/demo_js_2018 ... SimpleList

- demoJS.png (106.28 KiB) Viewed 17314 times
Re: how to show "print to pdf" button as asp.net report view
Posted: Sun Jan 21, 2018 4:19 am
by chenyb
found the reason:
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.height = "100%";
options.appearance.scrollbarsMode = true;
options.toolbar.showDesignButton = true;
//options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Pdf; <------ remove this line
options.appearance.htmlRenderMode = Stimulsoft.Report.Export.StiHtmlExportMode.Table;
Test print to pdf ,use virtual printer: [microsoft print to pdf],get .pdf file,miss page number
show in viewer :

- viewer.png (139.06 KiB) Viewed 17313 times
show in pdf file:

- print_to_pdf.png (243.39 KiB) Viewed 17313 times
Re: how to show "print to pdf" button as asp.net report view
Posted: Sun Jan 21, 2018 10:51 am
by chenyb
export pdf

- ExportPDF.png (210.61 KiB) Viewed 17312 times
Re: how to show "print to pdf" button as asp.net report view
Posted: Mon Jan 22, 2018 2:39 pm
by HighAley
Hello.
Usually, browsers add margins to the print pages.
Please, set the margins to None in the browser's print settings.
Thank you.
Re: how to show "print to pdf" button as asp.net report view
Posted: Mon Jan 22, 2018 2:49 pm
by chenyb
no matter how to set browser,[print to pdf] lost page number at bottom.
Test browser : firefox
Re: how to show "print to pdf" button as asp.net report view
Posted: Mon Jan 22, 2018 4:04 pm
by HighAley
Hello.
Sorry, we can't reproduce the issue.
Could you send us a step-by-step instruction or better a video that will help us to reproduce the issue?
Thank you.
Re: how to show "print to pdf" button as asp.net report view
Posted: Tue Jan 23, 2018 11:09 am
by chenyb
1.set brower margin 0

- BrowerPageSetting.png (28.96 KiB) Viewed 17300 times
2.open
http://demo.stimulsoft.com/#Js

- preview in page.png (353.27 KiB) Viewed 17300 times
3.click [Print To PDF] and select [PDF printer]

- print.png (46.57 KiB) Viewed 17300 times
4.click[Save]->[Adobe PDF File...]

- pdfResult.png (427.62 KiB) Viewed 17300 times
5.click [Print To PDF] and select [XPS Printer]

- printToPDF_XPS.png (56.98 KiB) Viewed 17300 times

- xpsResult.png (189.74 KiB) Viewed 17300 times
[Print To PDF] lost page number
Re: how to show "print to pdf" button as asp.net report view
Posted: Tue Jan 23, 2018 12:41 pm
by HighAley
Hello.
Sorry, we still can't reproduce the issue.
Could you send us the pdf and xps files that you get after export?
Thank you.