NTPReportListFromDatabase ( <ReportNameBuffer>, <ServerName>, <DatabaseName> ) -> <ErrorCode>
Description
End user dialogue used for the selection of reports. This dialogue shows all the available reports within a database. The end user may select any report from this list. All reports that bear the flag "report released" (see NotesToPaper Setup) are shown.
Only reports saved in Notes databases are displayed in this dialogue. If reports saved as files on the file system are to be displayed, use the NTPReportListcommand.
Note: Limitations to the reports displayed in this selection dialogue may be achieved by calling NTPReportListAddCategory before executing this function.
Note: The command requires a buffer, created by Lotus Script, in order to be able to receive the selected report name.
Declaration for Lotus Script
Declare Function NTPReportListFromDatabase Lib "NTP.DLL" ( ReportNameBuffer As String,ByVal ServerName As String, ByVal DatabaseName As String ) As Long
Parameter
<ReportNameBuffer> (STRING)
Buffer to accept the selected report name. The buffer has to be created by Lotus Script (e.g. Buffer = Space ( 255 ) )
<ServerName> (STRING)
Name of the server the database is located on. If an empty string is passed, the database is assumed to be local. The server name should be passed in the form passed by the "NotesDatabase" class.
<DatabaseName> (STRING)
Name of the database containing the report definition. The database name may contain sub-directories and must be given relative to the Notes data directory (e.g. "Demo\Ntp.Nsf").
Return value
<ErrorCode> (LONG)
Number of the error encountered (0 = no error)