663
Views
4
Comments
RunJavaScript "window.print();" - adding a blank page
Question

I am trying to print a popup page using a print button with RunJavaScript with window.print() command only.

A blank page was added when it opens the printer setup.


2018-06-07 09-54-29
Renato Torres

Hi Edwin,


Printing directly the popup doesn't allow to control the output.


Have you tried the HTML to PDF converter as an alternative?

https://www.outsystems.com/forge/component/209/html2pdfconverter/


Other options are also available here:

https://www.outsystems.com/forge/#category=&order=&s=pdf


Cheers,

Renato


Edwin Siruma wrote:

I am trying to print a popup page using a print button with RunJavaScript with window.print() command only.

A blank page was added when it opens the printer setup.




2018-06-27 00-09-40
Edwin Siruma

We already have the option to download as PDF. We are just thinking of adding a straight forward printing option. Thank you.

UserImage.jpg
Joseph Lorenzo Puangco

Edwin Siruma wrote:

We already have the option to download as PDF. We are just thinking of adding a straight forward printing option. Thank you.


Hi Edwin,


Having the same issue. how did you manage to remove the blank page when opening the printer setup?

Thanks!

UserImage.jpg
Gabriel Cardoso

Hi Edwin


If your goal is just to have an option to print, you could just redirect or open a new tab with the page layout.

This also allows you to personalize the page to, for example, remove headers and footers.


Hope I could help

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.