NTPPrinterSetPrinterName

 

NTPPrinterSetPrinterName ( <ReportHandle>, <PrinterName>, <PrinterOption> ) -> <ErrorCode>

 

 

Description

 

This command sets a certain printer as the standard printer for a set report. The name of the printer to be used is found by using the NTPPrinterGetPrinterName function first. NotesToPaper offers to types of pre-set printers: For the first page (NTPPRINTER_FIRST_PAGE_PRINTER ) and for the following pages (NTPPRINTER_FOLLOWING_PAGE_PRINTER) of a report. The parameter <PrinterOptions> defines this setting.

 

 

Declaration for Lotus Script

 

Declare Function NTPPrinterSetPrinterName Lib "NTP.DLL" ( ByVal ReportHandle As Long, ByVal PrinterName As String, ByVal PrinterOption As Long ) As Long

 

 

Parameter

 

<ReportHandle> (LONG)

Report handle, returned by calling NTPInit or NTPInitFromDatabase.

 

 

<PrinterName> (LONG)

The name of the printer to be used for print output. The name of the printer can be found by using NTPPrinterGetPrinterName.

 

<PrinterOption> (LONG)

This option defines if the printer is to be used for the first or the following pages:

NTPPRINTER_FIRST_PAGE_PRINTER

NTPPRINTER_FOLLOWING_PAGE_PRINTER

 

 

Return value

 

<ErrorCode> (LONG)

Number of the error encountered (0 = no error)