how to print on a ticket printer?

Blitz3D Forums/Blitz3D Programming/how to print on a ticket printer?

Dimas(Posted 2007) [#1]
I have Win XP with a parallel epson matrix ticket printer.

I have a file, ticket.txt

I open a console ("cmd") and type "type ticket.txt >prn" and the ticket is sent to the printer and printed.

But from Blitz, the command:

execfile "type ticket.txt >prn"

does not work

Is there an (easy) way to sent ascii chars directly to the printer, or the parallel port?


D4NM4N(Posted 2007) [#2]
try writing that command out a 'PrintMe.bat' file and exec-ing that instead.

also, try forwarding it to >lpt1 instead of prn. It *should* send it directly to the port itself


Dimas(Posted 2007) [#3]
Thx, not bad idea... and it works! :)