我被困住了。希望以前有人看到过此错误消息?
我正尝试通过vba将来自SymbolScanner的数据通过Symbol SDK / OPOS读取到EXCEL中。但是我从“ ZebraScannerSO”得到一个错误,告诉“ SODAta失败”。当事件被触发时(当我扫描条形码时)会发生这种情况。我已经在64位Windows笔记本电脑上安装了SDK,并引用了“ ZebraScannerSO”,“ OPOS扫描仪控件1.14.000 ...”。我创建了一个表单,并添加了一个控件“ OPOS Scanner Control 1.14.000 ...”
Private Sub UserForm_Initialize()
OPOSScanner1.Open ("SYMBOL_SCANNER")
OPOSScanner1.AutoDisable = False
OPOSScanner1.DecodeData = True
OPOSScanner1.ClaimDevice (1000)
OPOSScanner1.FreezeEvents = False
OPOSScanner1.DeviceEnabled = True
OPOSScanner1.DataEventEnabled = True
MsgBox "DataEvent: " & OPOSScanner1.DataEventEnabled & vbCr & "Decode: " & OPOSScanner1.DecodeData & vbCr & "Enabeled: " & OPOSScanner1.DeviceEnabled & vbCr & "Claimed: " & OPOSScanner1.Claimed & vbCr & "Autodisable: " & OPOSScanner1.AutoDisable
End Sub