Hi
The cash drawer is connected through RJ11 cable and according to the documentation and OLE Control and shown in the Hardware the Device name is "Devcash"
i used the following code, CDCNTLib is Library provided with the machine
Imports CDCNTLib
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim dd As New CDCNTLib.CashDrawer()
dd.Open("Devcash") ' open the device driver
dd.Claim(1000) '1000 is timeout
dd.DeviceEnabled = True
End Sub
End Class
the error is coming "Catastrophic Failure" OLE Exception
Thanks
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement