Print (NotesUIDocument - LotusScript®)

Prints the current document:

  • If one or more parameters are specified, automatically prints the document.
  • If no parameters are specified, or if the first parameter is omitted, displays the File Print dialog box.

Defined in

NotesUIDocument

Syntax

Call notesUIDocument .Print

or

Call notesUIDocument .Print( [ numCopies% [, fromPage% [, toPage% [, draft [, printerName]]]]] )

Parameters

numCopies%

Integer. Optional. The number of copies you want to print. If you omit this parameter, the method displays the File Print dialog box. If you specify 0, the method prints one copy.

fromPage%

Integer. Optional. The page number where you want to begin printing. If you omit this parameter or specify 0, the method begins printing on the first page of the document.

toPage%

Integer. Optional. The page number where you want to stop printing. If you omit this parameter or specify 0, the method stops printing on the last page of the document.

draft

Boolean. Optional. Specify True if you want to print the document in draft mode. Otherwise, specify False or omit this parameter.

printerName

Text. Optional. Specify the name of the printer where you want the document to print, as you would specify it in the File Print dialog box.

Example