DrawMaxiCodeA

Small Business、条码

需要 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 形式。行为与 DrawMaxiCode 完全相同,字符串参数按当前 SetAnsiMode 代码页解释

语法

Delphi

Function DLDrawMaxiCodeA(InstanceID: Integer; Left: Double; Top: Double; Width: Double; Height: Double; Text: PAnsiChar; Primary: PAnsiChar; Mode: Integer): Integer;

DLL

int DLDrawMaxiCodeA(int InstanceID, double Left, double Top, double Width, double Height, const char* Text, const char* Primary, int Mode);

Mode 接受 2 到 6;模式 2 和 3 要求 Primary 包含邮政编码,后接三位国家代码与三位服务类别

模式 2 接受 1 到 9 位邮政编码数字;模式 3 接受 1 到 6 个邮政编码字母、数字或空格;模式 4 到 6 要求主字符串为空;模式 6 保留给扫描器维护

负载为 Text;请求的框内保持符号的宽高比、六边形单元与中心定位图形

PDF.DrawMaxiCode(50, 700, 100, 100, 'Shipment 12345', '', 4);

成功返回 1,失败返回 0;专业条码 介绍版本要求、部署与错误