getDefaultPaperSource

getDefaultPaperSource(): Integer updating;

The getDefaultPaperSource method of the Printer class returns the default paper source (printer tray) that is set for the physical printer. This method opens the printer if it is not already open. The default printer paper source is that set by the user for the specific physical printer.

A user can set a default value for the paperSource property for a printer by:

  1. Opening the Windows Printers form (from the Start menu Printers command in the Settings submenu, for example)

  2. Right‑clicking on the icon for the specific printer

  3. Selecting the Document Defaults or Printing Preferences command from the popup menu that is displayed, depending on the version of the Windows operating system that is running

This method does not return the paper source that is set for the printer itself, but only the default paper source set by the user. For most printers, the default paperSource is Automatically Select.

The Jade default value for the paperSource property is Automatically Select. The following code fragment sets the default paper source for users.

app.printer.paperSource := app.printer.getDefaultPaperSource;