1

我在连接到秤/扫描仪 HoneyWell Stratos 2700 时遇到问题。我正在使用 Honeywell 提供的库 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'”

4

0 回答 0