ExecuteVCRDataMergeExA

Integration and compatibility

Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns 0 and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to ExecuteVCRDataMergeEx and string arguments are interpreted using the current SetAnsiMode code page

DLL and ActiveX form of the external-file PDF/VCR merge

JSON field names and values use standard JSON string escapes, including Unicode escapes; an explicit empty string clears its placeholder, while an absent field leaves its placeholder unchanged; failed merges preserve an existing output file

Syntax

Delphi

Function DLExecuteVCRDataMergeExA(InstanceID: Integer; InputFileName, Password, FieldValues, OutputFileName: PAnsiChar): Integer;

DLL

int DLExecuteVCRDataMergeExA(int InstanceID, const char* InputFileName, const char* Password, const char* FieldValues, const char* OutputFileName);

Remarks

Forwards the Delphi ExecuteVCRDataMerge external-file overload with the same arguments and return values

See also

ExecuteVCRDataMergeCurrent, Automation extensions