ShowPrintButton

Stimulsoft Reports.JS discussion
Post Reply
Ehsan
Posts: 100
Joined: Tue Jan 05, 2016 10:39 am
Location: Iran

ShowPrintButton

Post by Ehsan »

Hello,

How to only display print on PDF ?
there is three print button,
but I just want one of them, Print By PDF!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: ShowPrintButton

Post by HighAley »

Hello.

You could use next code to use Print to PDF button only:

Code: Select all

var options = new Stimulsoft.Viewer.StiViewerOptions();
options.toolbar.printDestination = Stimulsoft.Viewer.StiPrintDestination.Pdf;
viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
Thank you.
Post Reply