How to pass CONTROL + P from weweb to Chrome in order to print pages

HI guys

how can i bind a button to accept the CONTROL P function in weweb for a chrome web browser to print the page?


You can do this both in editor and published page as far as I know.

If you wany your button to trigger the print of the page, you can add a customjs action with the following code

wwLib.getFrontWindow.print()

thanks everyone, we going to try it out and will let u know how we progress!

much appreciated

tried your suggestion - getting an error - any ideas please?

Screenshot 2023-09-02 at 13.33.09

wwLib.getFrontWindow().print()

thanks a bunch! works perfectly.

1 Like

Sorry, my mistake, thanks @dorilama

2 Likes