NTPGetDataFileName ( <ReportHandle>, <DataFileBuffer> ) -> <ErrorCode>
Description
A temporary spoolfile is created in order to temporarily save the data extracted from the Notes application. This function makes it possible to retrieve the name of the spoolfile created. The retrieved file is passed to the function NTPProcessReport which then creates the report from the information contained in the spoolfile.
Note: The command must include a buffer, created in Lotus Script, in order to be able to accept the file name.
Note: This function is no longer needed in new script routines, new routines should instead be using NTPProcessReportExt. Passing the spoolfile information is only necessary when using NTPProcessReport. The new function automatically passes the <ReportHandle>.
Declaration for Lotus Script
Declare Function NTPGetDataFileName Lib "NTP.DLL" ( ByVal ReportHandle As Long, DataFileBuffer As String ) As Long
Parameter
<ReportHandle> (LONG)
Report handle, returned by calling NTPInit or NTPInitFromDatabase.
<DataFileBuffer> (STRING)
Buffer to accept the filename including path information. The buffer must be created by Lotus Script (e.g. Buffer = Space ( 255 ) )
Return value
<ErrorCode> (LONG)
Number of the error encountered (0 = no error)