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 the standard JSON string escapes, Unicode escapes included; an explicit empty string clears its placeholder, whereas a field that is left out keeps its placeholder as it is; a failed merge leaves any existing output file intact
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