我无法读取所有条形码字体 [英] I can not read all barcode fonts

查看:253
本文介绍了我无法读取所有条形码字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我输入了读取条形码字体的代码但是没有读取所有条形码字体例如这个字体IDAutomationHC39M2没有读取是否有任何库需要添加到项目中以识别条形码字体?这就是我的尝试:



我的尝试:



I typed code to read barcode fonts But do not read all the barcode fonts For example this font IDAutomationHC39M2 does not read Are there any libraries that need to be added to the project to recognize barcode fonts? That's what I tried:

What I have tried:

int i = 1;
       String[] barcodes = BarcodeScanner.Scan(filenamet.Text, BarcodeType.Code39 | BarcodeType.Code128 | BarcodeType.All | BarcodeType.Codabar);
       foreach (string element in barcodes)
       {

           decoded +=i+"**{ " +element + " }**" +"\r\n";
           i += 1;
       }
       MessageBox.Show(decoded);

推荐答案

您可以查阅您正在使用的条形码库上的文档,无论可能是什么。 />


BarcodeType.All的枚举值不会自动支持现有的每个条形码。它只告诉图书馆尝试将它看到的条形码与它支持的类型相匹配。



看来你正在使用的库不支持Code 39或无法识别它看作Code 39的图像。
You can to consult the documentation on the Barcode library you're using, whatever that may be.

An enum value of BarcodeType.All doesn't automatically support every barcode in existence. It only tells the library to try to match the barcode it sees against the types it supports.

It would appear that the library you're using doesn't support Code 39 or doesn't recognize the image it sees as Code 39.


这篇关于我无法读取所有条形码字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆