我在我的条形码读取器项目中使用动态条形码读取Dll,我在运行时得到了正确的条形码输出,但是通过输出我获得了许可error.How,我能解决it...Just,我只使用条形码dll。
在这里我附加了输出截图和代码..。
[License Error Screen Shot
{
Stopwatch watch = new Stopwatch();
BarcodeReader reader = new BarcodeReader();
public String BarcodePathAndName = "";
int i = 0, n = 0;
public bool nextimgs = true;
ThreadClassnextImage obj = new ThreadClassnextImage();
public Barcodes()
{
InitializeComponent();
CheckForIllegalCrossThreadCalls = false;
obj.BcH += obj_BcH;
}
private void obj_BcH(Image BarcodeNextImages, string barcodeImagePath)
{
rTbBarCodeResults.Text = "";
PbLoadBarcodeImage.Image = BarcodeNextImages;
watch.Reset();
watch.Start();
BarcodeResult[] result = reader.DecodeFile(barcodeImagePath);
n = result.Length;
for (i = 0; i < n; i++)
{
BarcodeResult barcode = result[i];
rTbBarCodeResults.Text = rTbBarCodeResults.Text + barcode.BarcodeFormat.ToString() + "\r\n";
rTbBarCodeResults.Text = rTbBarCodeResults.Text + barcode.BarcodeText + "\r\n";
rTbBarCodeResults.Text = rTbBarCodeResults.Text + barcode.BarcodeData.ToString() + "\r\n";
watch.Stop();
rTbBarCodeResults.Text += "\n\nTotal Sec: " + watch.Elapsed.TotalSeconds+"\r\n";
rTbBarCodeResults.Text+="\r\nTotal Minutes: "+watch.Elapsed.TotalMinutes+"\r\n";
rTbBarCodeResults.Text+="\r\nTotal Mill Seconds: "+watch.Elapsed.TotalMilliseconds+"\r\n";
rTbBarCodeResults.Text+="\r\nTotal Nano Seconds:"+watch.Elapsed.TotalMilliseconds*1000000+"\r\n";
}
}`[1]
发布于 2017-04-09 23:55:17
Dynamsoft条形码阅读器是一种商业软件。您必须设置有效的许可证,试用或完整,如下所示:
BarcodeReader reader = new BarcodeReader { LicenseKeys = "t0260NQAAAFUZbbNi3xJ4oViu+0+5Eim8wPzn6GeJZrIvrb/HLjzJ8Mn+GRjbfdoa/f+iRLzKTudXVEkKqj9tKlzzDP+xKzZ2IdknzMXimKDmKBivdKTXM3T5ACPK25omqoQkqNw00zExtCrR532mHig0QU6dsF5EmvkgDLxsbWw/M54wj1F1pGagM7YfKzpLN0/qvCeejimX2nvTMfOzv+M37m+0RPsnyp20pITycnvBGyWkZ3OWQ97U8UNYl+OyyfuHymz8EcjqQm9nxvYTm4nYHERHkiXMmI6jWLgK+4+jIlcS9WLgWd8pMKkI0bZCcwmVzk5z+vuGYKjZVK/iuYIx7McOP9k=" };您可以从SDK安装程序获得试用许可证。
https://stackoverflow.com/questions/43292706
复制相似问题