我在连接秤/扫描仪时遇到问题HoneyWell Stratos 2700.我使用霍尼韦尔提供的库HHP并需要一个XML文件来配置它,但是我无法连接到秤/扫描器。
我正在使用此代码:
Public Class Form1
Private WithEvents mScanner As New HHP.PointOfService.ServiceObjects.Scanner.HandHeldScanner
Private WithEvents mScale As New HHP.PointOfService.ServiceObjects.ScaleSO.HWScaleSO
Private str As String
Public Sub reader()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Try
mScanner.Open()
mScanner.AssignLogicalname = "scannerABC"
If (mScanner.State = 1) Then
End If
Catch excp As Exception
Console.WriteLine(excp.Message)
End Try
End Sub
End Class
我收到此错误消息:
"异常类型' Microsoft.PointOfService.Management.Explorer'"