N2PDFAddField

Start page  Previous page  Next page

 

N2PDFAddField ( <JobID>,  <FieldOption>, <FieldName>, <FieldContent> ) -> <ErrorCode>

 

Description

With this function you can generate the data records for the mail merge, create the individual fields within the data records and fill them with values. You can find a detailed description of the mail merge function in the document entitled "Mail Merge".

 

Declaration for LotusScript

Declare Function N2PDFAddFieldW Lib LibName( ByVal JobID As Long,_

ByVal FieldOption As Long, ByVal FieldName As Unicode String,_

ByVal FieldContent As Unicode String ) As Long

 

Parameters

<JobID> (LONG)

The number that is returned when N2PDFInit is invoked and which references the PDF file in the memory. You use this ID to control which PDF you want to access with the function.

 

<FieldOption> (LONG)

You can transfer settings for the field using this parameter. At the present time only the value 0 or N2PDFVALUE_MAIL_MERGE_NEW_RECORD is allowed. A description of the mail merge function and the meaning of this parameter can be found in the document entitled "Mail Merge".

 

<FieldName> (UNICODE STRING)

This is the name of the field that is to be created and filled with the value <FieldContent>.

 

<FieldContent> (UNICODE STRING)

This is the content that is to be used for the field <FieldName>.

 

Return

<ErrorCode> (LONG)

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