Print (NotesUIView - LotusScript®)

Prints the selected document(s) or the current view.

  • If no parameters are specified, or if the first parameter is omitted, displays the File Print dialog box.
  • If the second form of the method is used, the document or view prints according to the specified parameters.
Note: This method is new with Release 5.

Defined in

NotesUIView

Syntax

Call notesUIView .Print

Call notesUIView .Print( numCopies% [, fromPage% [, toPage % [, draft [, pageSeparator % [, formOverride$ [, printView [, dateRangeBegin [, dateRangeEnd [, printerName ] ] ] ] ] ] ] ] ] )

Parameters

numCopies%

Integer. The number of copies you want to print. If you omit this parameter you get the first form of the method and all other parameters are ignored.

fromPage%

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

toPage%

Integer. Optional. The page of the document selection 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 selection.

draft

Boolean. Optional. Specify True if you want to print the document in draft mode.

pageSeparator%

Integer. Optional. Determines the page separator.

0

No page separator

1

Line between documents

2

Page break between documents

Note: This parameter is ignored if the printView parameter equals True.

formOverride$

Text. Optional. The name of the form that you want to use to print the document.

Note: This parameter is ignored if the printView parameter equals True.

printView

Boolean. Optional. Specify True to indicate that you want to print the current view instead of the contents of the document. Defaults to False.

dateRangeBegin

Variant of type DATE. Optional. Prints the beginning date if printing from a calendar view.

dateRangeEnd

Variant of type DATE. Optional. Prints the end date if printing from a calendar view.

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