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