NTPPrinterGetPrinterName ( <ReportHandle>, <PrinterNr>, <PrinterName> ) -> <ErrorCode>
Description
Finds the name of the "nth" (<PrinterNr>) printer.
Declaration for Lotus Script
Declare Function NTPPrinterGetPrinterName Lib "NTP.DLL" ( ByVal ReportHandle As Long, ByVal PrinterNr As Long, PrinterName As String ) As Long
Parameter
<ReportHandle> (LONG)
Report handle, returned by calling NTPInit or NTPInitFromDatabase.
<PrinterNr> (LONG)
The number of the printer whose name is to be found. The number of printers is found by using NTPPrinterGetPrintCount. If -1 is passed as the printer number, then the name of the Windows standard printer is read out.
<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)