NTPExportReport ( <ReportHandle>, <PageNr>, <ExportFormat>, <OutputFile>, <PercentSize>, <PixelFormat>, <numParam3>, <StrParam1>, <StrParam2>, <strParam3> ) -> <ErrorCode>
Description
This command allows individual pages of a report to be converted to graphics files. It is a prerequisite, that the report was created for the preview (see NTPProcessReport...) and the option NTPOPTION_KEEPREPORT. This option ensures, that the report is not immediately deleted once created (and viewed).
Note: This command contains a number of parameters that are not used at present. These parameters are needed to enhance the export functionality in the future (export libraries) but thus are not important at present. The values should be set to the values shown below.
Declaration for Lotus Script
Declare Function NTPExportReport Lib "NTP.DLL" ( ByVal ReportHandle As Long, ByVal PageNr As Long, ByVal ExportFormat As Long, ByVal OutputFile As String, ByVal PercentSize as Long, ByVal PixelFormat As Long, ByVal numParam3 As Long, ByVal strParam1 As String, ByVal strParam2 As String, ByVal strParam3 As String) As Long
Parameter
<ReportHandle> (LONG)
Report handle, returned by calling NTPInit or NTPInitFromDatabase.
<PageNr> (LONG)
Page number of the report to be exported.
<ExportFormat> (LONG)
Graphics format for the export. Possible values:
•NTPEXPORT_WMF
•NTPEXPORT_EMF
•NTPEXPORT_BMP
•NTPEXPORT_JPG
•NTPEXPORT_TIF
<OutputFile> (STRING)
File name for the graphics export.
<PercentSize> (LONG)
Definition of the page size in percent, e.g. 100% = 1:1 as in the report file.
<PixelFormat> (LONG)
Number of pixels needed to save a graphics pixel (= color depth). Possible values:
•NTPEXPORT_PF_1BIT
•NTPEXPORT_PF_4BIT
•NTPEXPORT_PF_8BIT
•NTPEXPORT_PF_16BIT
•NTPEXPORT_PF_24BIT
•NTPEXPORT_PF_32BIT
<numParam3> (LONG)
Not used at present always set to 0.
<strParam1> (STRING)
Not used at present always set to ""
<strParam2> (STRING)
Not used at present always set to ""
<strParam3> (STRING)
Not used at present always set to ""
Return value
<ErrorCode> (LONG)
Number of the error encountered (0 = no error)