NTPSetGlobalOptionString

 

NTPSetGlobalOptionString ( <OptionID>, <OptionValue> ) -> <ErrorCode>

 

 

Description

 

This command allows the setting of various global options for the creation and execution of reports. This function sets options that, as opposed toNTPSetOptionString, are valid for all reports.

 

 

Declaration for Lotus Script

 

Declare Function NTPSetOptionString Lib "NTP.DLL"( ByVal OptionID As Long, ByVal OptionValue As String ) As Long

 

 

Parameter

 

<OptionID> (LONG)

The possible settings that can be changed.

NTPOPTION_RTF_SETFONTMAPPING

 

<OptionValue> (STRING)

The new setting of the NotesToPaper option.

NTPOPTION_RTF_SETFONTMAPPING

 

This option allows the substitution of fonts for the export of rich text content e.g. for theNTPSendRTFieldByNamecommand. The command allows for the substitution of single or all fonts. The syntax is: <FontNameInRTF>;<FontNameInReport>

 

 

Examples:

Subsitute the font "Arial" for "Courier New": "Arial;Courier New"

Substitute all fonts for "Courier New": "*;Courier New"

 

 

Note: Check for the correct spelling of the font names. Make sure they are named exactly as they show in Windows.

 

 

Return value

 

<ErrorCode> (LONG)

Number of the error encountered (0 = no error)