Remove "Print to PDF" from print options.

Stimulsoft Ultimate discussion
iamyong
Posts: 23
Joined: Tue Dec 16, 2014 7:43 am

Remove "Print to PDF" from print options.

Post by iamyong »

Hi,

Is there a way to remove the "Print to PDF" option in the print options?

Image

What I'm after is to only show the "Print with Preview" and "Print without Preview" options.

Thanks
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Remove "Print to PDF" from print options.

Post by HighAley »

Hello.

It's possible to remove this menu and set one of this print methods using the PrintDestination property of the Viewer.

Thank you.
iamyong
Posts: 23
Joined: Tue Dec 16, 2014 7:43 am

Re: Remove "Print to PDF" from print options.

Post by iamyong »

Hi HighAley,

What I'm after is to just remove Print to PDF and STILL show both Print with Preview and Print without Preview options.

Thanks,
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Remove "Print to PDF" from print options.

Post by Lech Kulikowski »

Hello,

You can use the following code:
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiWebViewer1", false);
viewer.renderHtml("viewerCont");
viewer.jsObject.controls.menus.printMenu.items["PrintPdf"].style.display = "none";

Thank you.
npilot
Posts: 6
Joined: Mon Aug 14, 2023 7:55 am

Re: Remove "Print to PDF" from print options.

Post by npilot »

Hi,
It is possible to hide the print menu and show only the print button ?
Like in your demo : https://demo.stimulsoft.com/?seeAll#Net ... eQuotation
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Remove "Print to PDF" from print options.

Post by Lech Kulikowski »

Hello,

What product, viewer are you use?

Thank you.
npilot
Posts: 6
Joined: Mon Aug 14, 2023 7:55 am

Re: Remove "Print to PDF" from print options.

Post by npilot »

Hi I'm using Stimulsoft Reports JS 2023.3.3
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Remove "Print to PDF" from print options.

Post by Lech Kulikowski »

Hello,

We apologize for the delay, but we need some extra time to investigate the issue thoroughly. We will keep you informed about the result as soon as possible.

Thank you for your patience.
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Remove "Print to PDF" from print options.

Post by Lech Kulikowski »

Hello.

It's possible to remove this menu and set one of this print methods using the PrintDestination property of the Viewer.

Thank you.
npilot
Posts: 6
Joined: Mon Aug 14, 2023 7:55 am

Re: Remove "Print to PDF" from print options.

Post by npilot »

Thank you
Post Reply