getDefaultDocumentType

getDefaultDocumentType(): Integer updating;

The getDefaultDocumentType method of the Printer class returns the document type that is set for the physical printer.

This method opens the printer if it is not already open. The printer document default is that set by the user for the specific physical printer. A user can set a default value for the documentType 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 type of paper in the printer, but only the default type set by the user. For most printers, the default documentType is A4.

The JADE default value for the documentType property is A4. The following code fragment sets the default document type for users.

app.printer.documentType := app.printer.getDefaultDocumentType;