NTPSetOptionString (attachment)

 

You can influence the conversion of the NotesToPaper attachments via the following settings. All options are set via the function NTPSetOptionString. The following parameters of the function are available:

 

 

Proceeding to load the report layout from the database:

 

NTPOPTION_ATTACHMENT_REPORTNAME

The name of the report to be printed. The name can either be "hardcoded", or set by the end-user using the commands NTPReportList or NTPReportListFromDatabase. The specified name is the name under which the report was created in NotesToPaper Setup.

 

 

NTPOPTION_ATTACHMENT_DBNAME

Name of the database containing the report definition. The database name can contain subdirectories and has to be specified relative to the Notes data directory (e. g. "Demo\Ntp.Nsf").

 

 

NTPOPTION_ATTACHMENT_SERVERNAME

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.

 

 

Example:

Call NTPSetOptionString ( ReportID, NTPOPTION_ATTACHMENT_REPORTNAME, "PDF_ATTACHMENT" )

Call NTPSetOptionString ( ReportID, NTPOPTION_ATTACHMENT_DBNAME, db.FilePath )

Call NTPSetOptionString ( ReportID, NTPOPTION_ATTACHMENT_SERVERNAME, db.Server )

 

Contrary to the procedure mentioned above, the options NTPOPTION_ATTACHMENT_DBNAME and NTPOPTION_ATTACHMENT_SERVERNAME are not required when loading

the report layout from the file system.

 

Example:

Call NTPSetOptionString ( ReportID, NTPOPTION_ATTACHMENT_REPORTNAME, "PDF_ATTACHMENT" )

The report concerned is now loaded from the specified directory of the NTP.INI.

 

Note: If none of the above mentioned options are defined, NotesToPaper uses the standard report layout.