[英]Code 128 Barcode in VBA for Access not working properly
I copied the code from this thread into my access db: Generating Code 128 Barcodes using Excel VBA我将此线程中的代码复制到我的访问数据库中: 使用 Excel VBA 生成代码 128 条码
The function runs properly and returns a modified string (for the following, I will use the string "standard284762", my databases unique ID format as example). function 运行正常并返回修改后的字符串(以下我将使用字符串“standard284762”,我的数据库唯一 ID 格式为例)。
I downloaded this font: https://dl.dafont.com/dl/?f=code_128我下载了这个字体: https://dl.dafont.com/dl/?f=code_128
When I execute the function, it converts the string into this:当我执行 function 时,它将字符串转换为:
ÑstandardÌ<O^ÈÓ
And it shows up like this on the Report:它在报告中显示如下:
I am using the Office 365 Version of Access.我正在使用 Office 365 版本的 Access。 My module is named
Code128str
and my class module is named Class1
我的模块名为
Code128str
,我的 class 模块名为Class1
Any ideas what causes the weird output?有什么想法会导致奇怪的 output 吗? Could anyone confirm that the code works fine and the Problem is somewhere else?
任何人都可以确认代码工作正常并且问题出在其他地方吗?
Use the font from this page: http://grandzebu.net/informatique/codbar-en/code128.htm使用此页面中的字体: http://grandzebu.net/informatique/codbar-en/code128.htm
The font has to "pair" with the code.字体必须与代码“配对”。
Font download: http://grandzebu.net/informatique/codbar/code128.ttf字体下载: http://grandzebu.net/informatique/codbar/code128.ttf
I saw the same problem before I installed that version of the font.在安装该版本的字体之前,我看到了同样的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.