[Printer Plugin] Printer Plugin - How to use it

[Printer Plugin] Printer Plugin - How to use it

  
Forge Component
(2)
Published on 8 Oct by Luís Rondão
2 votes
Published on 8 Oct by Luís Rondão

Since I didn't have the time to build a sample application yet, and someone asked me how to use the plugin, here is a brief how to.

In the screen that you want to print you just need to:
1. insert a button/link in the screen;
2. in the action associated with the button/link call the public action "PrintCurrentPage" of the PrinterPlugin.

To test you need to generate a native app and install it in a device, it won't work in the Web Preview or with OutSystems Now.
When you tap the button/link it will open the operating system's printer screen:

Luís Rondão wrote:

Since I didn't have the time to build a sample application yet, and someone asked me how to use the plugin, here is a brief how to.

In the screen that you want to print you just need to:
1. insert a button/link in the screen;
2. in the action associated with the button/link call the public action "PrintCurrentPage" of the PrinterPlugin.

To test you need to generate a native app and install it in a device, it won't work in the Web Preview or with OutSystems Now.
When you tap the button/link it will open the operating system's printer screen:

Thank you very much, worked fine!!!