Exec Command Returning Invalid Opcode Error 113

G Gabe Taveira 3 years ago
16 0 0

I am trying to get and set the scan tone for my barcode scanner in VB.NET. I am able to open my scanner and get its ID without a problem but when I try to use execCommand() it fails and returns a status of 113. I get the same result for both getting and setting an attribute. This is my code for getting an attribute, my code for setting is very similar.
Dim CCoreScanner As New CCoreScannerClass
Dim scannerTypes As Short() = New Short(0) {}
scannerTypes(0) = 1
Dim numberOfScannerTypes As Short = 1
Dim status As Integer
Dim numberOfScanners As Short
Dim connectedScannerIDList(255) As Integer
Dim outXML As String
Dim inXML As String
CCoreScanner.Open(0, scannerTypes, numberOfScannerTypes, status)
CCoreScanner.GetScanners(numberOfScanners, connectedScannerIDList, outXML, status)
inXML = "" & vbCrLf & "1" & vbCrLf & "" & vbCrLf & "" & vbCrLf & "6000" & vbCrLf & "" & vbCrLf & "" & vbCrLf & ""

CONTACT
Can’t find what you’re looking for?