Provides a general printing facility for printing the contents of a window or component to a printer. The general workflow for this function is that you create the print job, set the options you'd like on it, and then call print() on the job. For printing reports or tables, use those components' dedicated print() functions.
The PrintJob object that this function returns has the following properties that can be set:
You can set all of the margins at once with job.setMargins(number), and you initiate the printing with job.print().
Component component - The component that you'd like to print.
JythonPrintJob - A print job that can then be customized and started.