2017-04-08 213 views
0

我正在使用Dynamsoft條碼閱讀器中的條碼閱讀器項目。我在運行時獲得正確的輸出條碼,但輸出中出現許可證錯誤。我該如何解決它...只是我我只能用條碼DLL ..DynamSoft條碼閱讀器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

回答

0

Dynamsoft條碼閱讀器是一款商業軟件。你必須設置有效的許可證,審判或完整,具體如下:

BarcodeReader reader = new BarcodeReader { LicenseKeys = "t0260NQAAAFUZbbNi3xJ4oViu+0+5Eim8wPzn6GeJZrIvrb/HLjzJ8Mn+GRjbfdoa/f+iRLzKTudXVEkKqj9tKlzzDP+xKzZ2IdknzMXimKDmKBivdKTXM3T5ACPK25omqoQkqNw00zExtCrR532mHig0QU6dsF5EmvkgDLxsbWw/M54wj1F1pGagM7YfKzpLN0/qvCeejimX2nvTMfOzv+M37m+0RPsnyp20pITycnvBGyWkZ3OWQ97U8UNYl+OyyfuHymz8EcjqQm9nxvYTm4nYHERHkiXMmI6jWLgK+4+jIlcS9WLgWd8pMKkI0bZCcwmVzk5z+vuGYKjZVK/iuYIx7McOP9k=" }; 

你可以從SDK安裝試用許可證。