Page 1 of 2

Remove "Print to PDF" from print options.

Posted: Tue Oct 15, 2019 11:22 pm
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

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

Posted: Thu Oct 17, 2019 7:48 am
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.

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

Posted: Thu Oct 17, 2019 9:55 am
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,

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

Posted: Thu Oct 17, 2019 10:04 am
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.

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

Posted: Mon Sep 11, 2023 10:56 am
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

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

Posted: Mon Sep 11, 2023 2:30 pm
by Lech Kulikowski
Hello,

What product, viewer are you use?

Thank you.

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

Posted: Mon Sep 11, 2023 3:22 pm
by npilot
Hi I'm using Stimulsoft Reports JS 2023.3.3

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

Posted: Wed Sep 13, 2023 10:41 pm
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.

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

Posted: Fri Oct 13, 2023 12:13 pm
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.

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

Posted: Mon Oct 16, 2023 3:56 am
by npilot
Thank you