LordGarfield
IS-IT--Management
Good day,
We have a POS system for a few years now. But the problem is that the software is so old that we want to renew it. An option is to rewrite the software in Visual Basic.
We have an iDP3210 Line Htermal Printer wich is connected to a pc's COM1 port. On the iDP3210 we connected a cash drawer. (M-S Cash Drawer)
My question is: How can I open the cash drawer in Visual basic and how can I print stuff to the iDP3210?
I have experience in Visual basic but never used COM ports nor POS systems before. I can write a complete database application to hold customer's, products, vendors etc.. but I do not know how to open cashdrawers and print to the com1.
I already tried to do some stuff so maybe it is handy you can look at it already.
Private Sub Command4_Click()
On Error GoTo err
Open "COM1:" For Output As #1
Print #1, Chr(65); "A";
Print #1, "Hallo, dit is een test"
Close #1
Exit Sub
err:
MsgBox ("Problems opening drawer"
End Sub
The only thing this program does is moving the paper in the printer one line up. I hoped to get something like this that prints something on the printer and opens the cash drawer.
Best regards,
Roel.
We have a POS system for a few years now. But the problem is that the software is so old that we want to renew it. An option is to rewrite the software in Visual Basic.
We have an iDP3210 Line Htermal Printer wich is connected to a pc's COM1 port. On the iDP3210 we connected a cash drawer. (M-S Cash Drawer)
My question is: How can I open the cash drawer in Visual basic and how can I print stuff to the iDP3210?
I have experience in Visual basic but never used COM ports nor POS systems before. I can write a complete database application to hold customer's, products, vendors etc.. but I do not know how to open cashdrawers and print to the com1.
I already tried to do some stuff so maybe it is handy you can look at it already.
Private Sub Command4_Click()
On Error GoTo err
Open "COM1:" For Output As #1
Print #1, Chr(65); "A";
Print #1, "Hallo, dit is een test"
Close #1
Exit Sub
err:
MsgBox ("Problems opening drawer"
End Sub
The only thing this program does is moving the paper in the printer one line up. I hoped to get something like this that prints something on the printer and opens the cash drawer.
Best regards,
Roel.