SetFormFieldValue
Description
Sets the initial value of a form field. The appearance stream for the form field is generated if SetNeedAppearances(1) has been called.
Syntax
Delphi
function TQuickPDF0815.SetFormFieldValue(Index: Integer;
NewValue: WideString): Integer;
ActiveX
Function QuickPDF0815.PDFLibrary::SetFormFieldValue(Index As Long,
NewValue As String) As Long
DLL
int QuickPDFSetFormFieldValue(int InstanceID, int Index, wchar_t * NewValue)
Parameters
| Index | The index of the required form field. The first form field has an index of 1. |
| NewValue | The new value of the form field. For multi-line text fields you can use Chr(13) or Chr(13) + Chr(10) to force a line break. |
Return values
| 0 | Could not find the specified form field |
| 1 | The default value of the form field was set successfully |