[Lazarus] Printing in Text mode on Windows?

Jesus Reyes jesusrmx at yahoo.com.mx
Thu May 1 20:46:27 CEST 2008


--- Lee Jenkins <lee at datatrakpos.com> escribió:

> On Linux, I would think printing to CUPS in text mode to be easy,
> but Windows 
> I'm not sure.  I have a unit that I use in Delphi to do this, but
> tried to port 
> it over to Laz/FPC without success so far.
> 
> I did happen upon the rawmodetest example in /components/printing,
> but it 
> doesn't seem to work.  I tried it on Windows using an Epson 220 dot
> matrix 
> receipt printer installed with the Generic Text Drive without
> success.
> 
> Any pointers?
> 
> Thanks,
> 
> -- 
> 
> Warm Regards,
> 
> Lee
> 

The Rawmode printing in windows, quote from ms docs "tells the
spooler not to alter the print job at all prior to printing" as it
seems your printer uses a propietary command set maybe you need to
send some initialization or so to printer. 

According my google result, TM-U220 (if that is the model of your
printer) "Supports ESC/POS operating system; the standard code for
POSprinters". You will probably need to have command reference for
esc/pos. Then send to printer something it makes sense to it.

I don't know what do the Delphi unit does, what I know is that
printer in Delphi don't have raw mode support by default.

Jesus Reyes A.


      ____________________________________________________________________________________
Yahoo! Deportes Beta
¡No te pierdas lo último sobre el torneo clausura 2008! Entérate aquí http://deportes.yahoo.com



More information about the Lazarus mailing list