NTPDesignerSetPrinterToDefault

 

NTPDesignerSetPrinterToDefault ( <ReportName>, <ServerName>, <DatabaseName> ) -> <ErrorCode>

 

 

Description

 

This command resets all printer settings (printer for first and following pages) in a report. The report will then be printed on the default printer.

 

 

Declaration for Lotus Script

 

Declare Function NTPDesignerSetPrinterToDefault Lib "NTP.DLL" ( ByVal ReportName As String, ByVal ServerName As String, ByVal DatabaseName As String ) As Long

 

 

Parameters

 

<ReportName> (STRING)

The name of the report, which was assigned by using NotesToPaper Setup, when the report was originally created.

 

<ServerName> (STRING)

Name of the server the database <DatabaseName> that contains the report is located on. If an empty string is passed, the database is assumed to be local.

 

<DatabaseName> (STRING)

The name of the database from which the report is to be read and which is found on <ServerName>.

 

 

Return value

 

<ErrorCode> (LONG)

Number of the error encountered (0 = no error)