NTPInit

 

NTPInit ( <ReportName>, <ShowHideMessages> ) -> <ErrorCode>

 

 

Description

 

Initialization of a new report. The function delivers a handle (report handle) as the return value, which is used by all other functions to access this new report. Most of the NotesToPaper functions expect this report handle as the first parameter. This report handle is valid until the report is either cancelled by using NTPCancel or executed by using NTPProcessReport.... This command can only initialize a report where the reports layout is saved on the file system. If a report layout saved in a database is to be used, use the command NTPInitFromDatabase instead.

 

 

Declaration for Lotus Script

 

Declare Function NTPInit Lib "NTP.DLL" ( ByVal ReportName As String, ByVal ShowHideMessages As Long ) As Long

 

 

Parameter

 

<ReportName> (STRING)

 

The name of the report to be printed. The name can either be "hard coded" or set by the end-user, by using the commands NTPReportList or NTPReportListFromDatabase. The name to be used here, is the name the report was created under in NotesToPaper Setup.

 

 

<ShowHideMessages> (LONG)

Mode for the output of error messages. Possible values:

NTPPROCESS_SHOWMESSAGES

NTPPROCESS_HIDEMESSAGES

 

 

Return value

 

<ErrorCode> (LONG)

If the <ErrorCode> is negative, an error was encountered. A return value >=0 is the report handle for the additional commands, such as NTPSendField for example.