Can binary data be sent using WRITE?
Does anyone know how I can trick the WRITE command to send binary data to a printer using the WRITE command.
I am writing a driver for an Eltron thermal label printer that supports the EPL2 command language. To send a small graphic (a logo) I use the "GW" command that requires binary data. Other printers (e.g. Zebra with ZPL2 language) accept Hex written as characters, but this one does not.
I've tried putting the necessary bytes into a hex (TYPE X) field but looking at the print spool I see that WRITE has helpfully converted the bytes to their 2 character hexadecimal equivalents. I want to send the bytes instead.
The output device is defined as ASCIIPRI.
Does anyone have any ideas?