-
esc/pos command
i am writing a program using visual basic 6 to print receipt to Epson compatible POS Printer. For printing Text is ok, but i wanted to include image into the receipt, but i don't know how to do so.
For Text printing, I use the ESC/POS command something like
Open "LPT1:" For Output As #1
Print #1, Chr$(27) + "@" ' initial printer
Print #1, "my code here"
Print #1, Chr$(27); "m" ' cut receipt
Close #1
i saw the epson pos printer manual, it say use the ESC/POS Command like
GS ( L - define,download and print NV graphics
GS * - define downloaded bit image
GS / - print downloaded bit image
FS p - print NV bit image
FS q - Define NV bit Image
but i don't know how to use the following command in order to print a image.
please help.
-
Re: esc/pos command
Welcome to the Forums :wave:
Could you possible explain a bit more on what the problem is?
-
Re: esc/pos command
Are you trying to print or output printer commands ?
ESC = chr(27)...See the ASCII table link
-
Re: esc/pos command
To print graphics you probably will have to use other print methods, try to do a search, since that prints only text and has no by-pixel control. You can print the content of a form using the form's print method (which implies you place the graphics and text to be printed on the form) but that has its drawbacks.
-
Re: esc/pos command
Please don't make duplicate threads in the future. You can edit your posts. Thanks.
-
Re: esc/pos command
Phang, you need to create and send a bitmap image.
I did this years ago. I create an image using 10101110000011
The printer converted this to dots. This printer might want chr(?) values.
Sounds like an experiment...
-
Re: esc/pos command
Duplicate threads merged.
-
Re: esc/pos command