SetFormFieldValueByTitle
表單欄位
描述
設定所有指定標題表單欄位的值。若已呼叫 SetNeedAppearances(1),會產生這些欄位的外觀串流
語法
Delphi
Function TPDFlib.SetFormFieldValueByTitle(Const Title, NewValue: WideString): Integer;
ActiveX
Function PDFlib::SetFormFieldValueByTitle(Title As String, NewValue As String) As Long
DLL
int DLSetFormFieldValueByTitle(int InstanceID, const wchar_t * Title, const wchar_t * NewValue);
參數
| Title | 要設定的表單欄位標題。 |
|---|---|
| NewValue | 表單欄位的新值。多行文字欄位可用 Chr(13) 或 Chr(13) + Chr(10) 在行之間強制換行。 |
傳回值
| 0 | 找不到表單欄位 |
|---|---|
| 1 | 表單欄位的值設定成功 |