张江鹏 杨文 张利军 卢玉
摘 要: 二维码技术应用广泛,但是针对大批量、标签式的二维码应用场景,仍缺乏简单易用、方便快捷的设计与生成系统。文章分析了常用二维码标签生成系统的不足,设计并实现了一套QR Code二维码标签批量生成系统。该系统采用VBA实现标签批量生成功能、采用动态链接库作为二维码生成的编程接口。实验验证结果表明,该系统能够满足生产、经营、管理活动中对大批量、标签式二维码的需求,并具有灵活、便捷、高效等优点。
关键词: 二维码; 动态链接库; QR Code; VBA
中图分类号:TP311 文献标识码:A 文章编号:1006-8228(2022)03-65-05
Abstract: Two-dimensional code technology is widely used, but there is still a lack of easy-to-use, convenient and fast design and generation systems for large-volume, label-type two-dimensional code application scenarios. This paper analyzes the shortcomings of commonly used QR Code label generation systems, and designs and implements a QR Code label batch generation system. The system uses VBA to realize the function of label batch generation, and uses dynamic link library as the programming interface for QR Code generation. Experimental verification results show that the system can meet the demand for large-volume, label-based QR Codes in production, operation, and management activities, and has the advantages of flexibility, convenience, and efficiency.
Key words: two-dimensional code; dynamic link library; QR Code; VBA
0 引言
在当今移动互联网时代,二维码技术在各类生产经营、日常生活中得到了空前广泛的应用,智能手机的扫一扫功能使得二维码应用更加普遍[1-2]。二维码具有信息量大、可靠性高、使用成本低廉等优点[3-4]。QR Code是目前应用最为广泛的二维码类型之一[5]。
当前,二维码主要有两大类应用场景。
第一类是在日常生活中作为特定信息标识、供个人使用的各类单个式二维码应用场景。在该类场景中,二维码一般由特定的应用软件进行生成、识别、解析,同时由于是单个式二维码,一些在线式的二维码生成系统也能简便、快捷地满足个人使用需求。例如,微信、支付宝的收款码、付款码均可分别由微信、支付宝APP进行生成、识别。
第二类是在生产、经营、管理等活动中作为设备、物资标签的大批量、标签式二维码应用场景[6,7]。在该类场景中,标签具有样式设计的需求,二维码一般只是作为标签中的一项组成元素;同时还具有大批量生成的需求,一般需要针对具有相同数据格式的不同数据内容,生成大批量的标签。……