NTPProcessReport ( <DataFile>, <ReportDestination>, <ShowPrintSetup>, <ShowStatus>, <ShowHideMessages> ) -> <ErrorCode>
Description
Processes the created spoolfile and report output to the screen (Preview) or to the printer. The various parameters influence how the output is "presented" to the user. All necessary settings for the report have to be taken care of before calling this function. After "executing" the report, the report handle created by NTPInit...A is only available to certain functions, e.g. NTPExportReport, that access the created preview file.
Note: The command NTPProcessReport should no longer be used for new script routines, as it is only available for compatibility reasons. New routines should use the NTPProcessReportExt command, as this as opposed to NTPProcessReport, receives the report handle and not the spool file created (that was found by using NTPGetDataFileName first).
Declaration for Lotus Script
Declare Function NTPProcessReport Lib "NTP.DLL" ( ByVal DataFile As String, ByVal ShowPreview As Long, ByVal ShowPrint As Long, ByVal ShowStatus As Long, ByVal QuietMode As Long ) As Long
Parameter
<DataFile> (STRING)
The name of the spool file delivering the data for the report. The name must be found by using NTPGetDataFileName first.
<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 a printer selection dialogue? Possible values:
NTPPROCESS_SHOWPRINTERDIALOG
NTPPROCESS_HIDEPRINTERDIALOG
<ShowStatus> (LONG)
Show a status bar during report creation? Possible values:
NTPPROCESS_SHOWSTATUSBAR
NTPPROCESS_HIDESTATUSBAR
<ShowHideMessages> (LONG)
Mode for the output of error messages. Possible values:
NTPPROCESS_SHOWMESSAGES
NTPPROCESS_HIDEMESSAGES
Return value
<ErrorCode> (LONG)
Number of the error encountered (0 = no error)