NTPDesignerGetPrinterName

 

NTPDesignerGetPrinterName ( <PrinterNr>, <PrinterName> ) -> <ErrorCode>

 

 

Description

 

Finds the name of the "nth" (<PrinterNr>) printer. This function provides the same results as NTPPrinterGetPrinterName, with the only difference, that no report handle is needed for this call. So it is not necessary to start a report in order to read out the name of a printer using this function.

 

 

Declaration for Lotus Script

 

Declare Function NTPPrinterGetPrinterName Lib "NTP.DLL" ( ByVal PrinterNr As Long, PrinterName As String ) As Long

 

 

Parameter

 

<PrinterNr> (LONG)

The number of the printer whose name is to be found. The number of printers is found by using NTPDesignerGetPrinterCount.

 

<PrinterName> (STRING)

Buffer to accept the printer name. The buffer must be created by Lotus Script (e.g. Buffer = Space ( 255 ) )

 

 

Return value

 

<ErrorCode> (LONG)

Number of the error encountered (0 = no error)