Print and cut paper with POS Printer Posiflex PP-7000II
Posted on 2008-02-07
I have POS Printer Posiflex PP-7000II serial, using serial to serial cable connection.
I need to write application with VB 6.0 to print and cut paper.
I've tried this:
Open "Com2:" For Output As #1
Print #1, "test printing"
the result is unreadable character printed.
I've also tried with MSComm1 control below:
com1.CommPort = 2
com1.Settings = "9600,N,8,1"
com1.PortOpen = True
com1.Output = Chr(27) & "@"
com1.Output = Chr(27) + "Printing Text..." + Chr(10)
com1.Output = Chr(27) & "i"
com1.PortOpen = False
the result also unreadable character printed and it didn't cut the paper.
My question is, how to make it readable (ASCII text as I send to printer) and how to cut the paper from vb code?
Very appreciate for your comment and solution.