RunJavaScript "window.print();" - adding a blank page

RunJavaScript "window.print();" - adding a blank page

  

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.


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.




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

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

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!