NTPProcessReportExt

 

NTPProcessReportExt ( <ReportHandle>, <ReportDestination>, <ShowPrintSetup>, <ShowStatus>, <ShowHideMessages>, <unUsed> ) -> <ErrorCode>

 

 

Description

 

This command starts the report generation, meaning the report is either printed or prepared for display and then displayed. The form of output is defined by the parameters of the function. All necessary options for the report have to be set prior to calling this function. After "executing" the report, the report handle created by NTPInit... is only available to certain functions, e.g. NTPExportReport, that access the created preview file.

 

 

Note: The command NTPProcessReportExt is the replacement function for NTPProcessReport, as this command allows the direct passing of the report handle. New script routines should use this function exclusively.

 

 

Note: By calling this function all reports appended to this report by use of NTPProcessReportAndAppend are displayed. The prerequisite hereby is the output of this report to the preview. If the report is output to the printer, appended reports are not printed!

 

 

Declaration for Lotus Script

 

Declare Function NTPProcessReportExt Lib "NTP.DLL" ( ByVal ReportHandle As Long, ByVal ReportDestination As Long, ByVal ShowPrintSetup As Long, ByVal ShowStatus As Long, ByVal ShowHideMessages As Long, unUsed As Long ) As Long

 

 

Parameter

 

<ReportHandle> (LONG)

Report handle, returned by calling NTPInit or NTPInitFromDatabase.

 

<ReportDestination> (LONG)

Defines the output form of the report. Possible values:

NTPPROCESS_PRINTTOPRINTER

NTPPROCESS_PRINTTOSCREEN

NTPPROCESS_PRINTTOFILE

NTPPROCESS_PRINTTOHTML

NTPPROCESS_PRINTTORTF

NTPPROCESS_PRINTTOPICTURE_JPEG

NTPPROCESS_PRINTTOPICTURE_EMF

NTPPROCESS_PRINTTOPICTURE_PNG

NTPPROCESS_PRINTTOPICTURE_BMP

NTPPROCESS_PRINTTOMHTML

NTPPROCESS_PRINTTOXML

NTPPROCESS_PRINTTOXLS

NTPPROCESS_PRINTTOTXT

NTPPROCESS_PRINTTOPICTURE_TIFF

NTPPROCESS_PRINTTOPICTURE_MTIFF

NTPPROCESS_PRINTTOXHTML

 

<ShowPrintSetup > (LONG)

Show printer selection dialogue? Possible values:

NTPPROCESS_SHOWPRINTERDIALOG

NTPPROCESS_HIDEPRINTERDIALOG

 

<ShowStatus> (LONG)

Show status bar during the report creation? Possible values:

NTPPROCESS_SHOWSTATUSBAR

NTPPROCESS_HIDESTATUSBAR

 

<ShowHideMessages> (LONG)

Mode for the output of error messages. Possible values:

NTPPROCESS_SHOWMESSAGES

NTPPROCESS_HIDEMESSAGES

 

<unUsed> (LONG)

Reserved for future use, always pass 0.

 

 

Return value

 

<ErrorCode> (LONG)

Number of the error encountered (0 = no error)