ExecuteVCRDataMergeExA
集成与兼容性
需要 Small Business 版。在 Delphi、C++Builder 和 Lazarus 代码中,请将库创建为 TPDFlibSmallBusiness(单元 PDFlibSmallBusiness)或 TPDFlibEnterprise;Small Business 版和 Enterprise 版的 DLL 与 ActiveX 构建原样提供该类。Single 版保留此方法,它返回 0,并将 LastErrorCode 设置为 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 ExecuteVCRDataMergeEx 相同,字符串参数按当前 SetAnsiMode 代码页解释
外部文件 PDF/VCR 合并的 DLL 与 ActiveX 形式
JSON 字段名与值使用标准 JSON 字符串转义(含 Unicode 转义);显式空字符串会清空对应占位符,缺失的字段保持其占位符不变;合并失败时保留已有的输出文件
语法
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);
备注
转发 Delphi 版 ExecuteVCRDataMerge 的外部文件重载,参数与返回值一致