N2PDFSetKey

Start page  Previous page  Next page

 

N2PDFSetKey ( <Key> ) -> <ErrorCode>

 

Description

This function is used to set the runtime for the n2pdf registration key. Instead of the registration key being read from the N2PDF.INI configuration file, the key set here is used for license validation. This method lets you place the registration key in the application's configuration and dynamically read and set it while it is being run.

 

112

Please keep in mind that as a rule n2pdf has a license that is restricted to an individual on the client side and to a version on the server side. This means that the registration key will only function with the Notes user name or the Domino server name for which it was issued. You must ensure that the correct user, or server, is using the right registration key.

 

Declaration for LotusScript

Declare Function N2PDFSetKey Lib LibName_

( ByVal Key As Unicode String ) As Long

 

Parameters

<Key> (UNICODE STRING)

This is the registration key to be used for validating the license. To reset this value, invoke this function with the parameter "".

 

Return

<ErrorCode> (LONG)

The code number of the error that has occurred when performing the function (see "Error Codes ").