Printing Active Screen

Does anyone have a way to determine what the active screen currently is and then print it?

There are a few ways to determine which screen is active. To better help you, can you explain more exactly what you are trying to do? Do you want to have a button in a navigation bar that just prints the current main window, or something else?

You could use system.nav.getCurrentWindow to get the path to the active main window, and then system.print.printToImage to save it to an image file.

1 Like

You can also use system.print.createPrintJob to send it to a printer or print to PDF.