SetFormFieldValueByIndex Method

Top  Previous  Next

The SetFormFieldValueByIndex method sets the value to the specified form field.

 

 

 

Syntax

 

 

[VC++]

void SetFormFieldValueByIndex(long FieldNo, LPCTSTR Value)

 

[CS]

public abstract new void SetFormFieldValueByIndex ( Int32 FieldNo , String Value )

 

[VB]

Sub SetFormFieldValueByIndex(FieldNo As Long, Value As String)

 

 

 

Parameters

 

 

FieldNo

[in] Specifies index of the form field in the PDF document to which the value needs to be set.

 

 

Values

[in] Specifies value of the form field that needs to be set.

 

 

 

Exceptions Raised

 

 

If the field corresponding to the Name provided does not exist, an EFieldNotFound exception is thrown.

 

 

If a field is Read-0nly type, then EFormFieldReadOnly exception is thrown.

 

 

If an invalid value is provided for a field, then EInvalidFieldValue exception is thrown.

 

 

ENoAcroFields exception is thrown if the document does not contain any AcroForm Fields.

 

 

If, due to any other reason, a field value could not be set, EAcroFormError exception is thrown.