Print directly on a matrix printer

Milan Babuskov milanb at panonnet.net
Mon Nov 26 01:49:22 PST 2007


Mauro Cordon wrote:
> How can I do to print directly on a matrix printer, without using fonts 
> ? In Brazil exist many matrix printers.

Create a regular text file and send it to the print system. Most systems 
use CUPS these days, and others also have a compatible lpr function 
which you can call. Take a look at 'lpr' man page.

If you know the exact model (for example, Epson LX series) you can also 
print Bold, Condensed, Wide, etc. characters by sending the Epson escape 
codes. In this case it would be a binary file. Take a look at printer's 
manual for details.

-- 
Milan Babuskov
http://www.guacosoft.com




More information about the wx-users mailing list