NTPSetKey

 

NTPSetKey ( <NewKey> ) -> <ErrorCode>

 

 

Description

 

This command allows the setting of the registration key at run-time for NotesToPaper. This allows the setting of the key via a script routine and thus not having to save the key in the NTP.INI.

In order for NotesToPaper to be reset to the default key validation routine, this function is cleared either by passing an empty string or using the NTPClearKey command.

 

 

Note: Further information can be found at "registration key"

 

 

Note: The command NTPSetKey must be used before using NTPInit or NTPInitFromDatabase.

 

 

Declaration for Lotus Script

 

Declare Function NTPSetKey Lib "NTP.DLL" ( ByVal NewKey As String ) As Long

 

 

Parameter

 

<NewKey> (STRING)

The registration key to be used.

 

 

Return value

 

<ErrorCode> (LONG)

Number of the error encountered (0 = no error)