Re: Printing a bitmap on a Epson POS printer
From: john (john_at_johnsDummyAddress.com)
Date: 05/21/04
- Next message: Billy: "Re: Free project planner"
- Previous message: Rich Ackerson: "Re: Free project planner"
- In reply to: Theo Pistorius: "Re: Printing a bitmap on a Epson POS printer"
- Next in thread: Matthew Jones: "Re: Printing a bitmap on a Epson POS printer"
- Reply: Matthew Jones: "Re: Printing a bitmap on a Epson POS printer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 21 May 2004 21:21:58 +0100
In article <40ae0524@newsgroups.borland.com>,
theo+nospamremove+@powertill.com says...
> "I want to move to Theory...Everything works in Theory"
>
> Ok, but how do one download the bitmap to the eprom of the printer with
> Delphi?
> I presume this only need to be done only once. Or can one do it with a
> simple dos bat file.
>
In batch files -
copy spool.prn lpt1:
may well do it for the standard epson escape code spool file
this is just a text file generated by the printer driver which
describes your .bmp This assumes you have the correct graphics driver for
your model of printer (and its firmware) in the first place
one good thing is you can store the .prn and just keep copying it over
anytime you like (yes you can do that in a batch file no problem) The
printer will probably be much slower than the copy if you want to print
multiples so dont worry about that (unless you have a high speed matrix
printer of course)
Printing under windows has always been a real nightmare - just wait till
you try and do colour - the process is staggering !
The speed change described above by someone can be very dramatic. One
thing about windows is if you try to get a driver to do something it
doesnt understand the windows GDI kicks in and does it for you - often in
conjuncion with your display driver! This tends to cause the
sloooowwwwness described!
If you want to send a bitmap direct you'll almost certainly need
to find out if your model can actually take one first - you need the
programmers manual perhaps for that as you'd presumably need to set the
printer into a specific binary graphics mode prior to sending the binary
data over the port - off hand I dont know if epson has a standard esc
code for doing that or even if your printer can do it at all
If LPT1: is on a serial port you can use the dos mode command to redirect
it. (type mode /? for syntax) I dont know how you get on to do it with a
USB or network port though -as far as I know mode can't do that and copy
dont work.
The advice in your example appears to be just guidance to remind you
about getting resolutions correct for the size of print you want. The
actual print procedure from delphi is easy enough.
One word of advice - dont be tempted to edit the .prn file manually as
things aren't always as simple as they seem in there !
If you think you have it bad - I once had to write a graphics driver for
an 8x8 matrix printer that only used 1 needle .... I will now stand back
in amusement while you try and work out how it did that !!!!
john
- Next message: Billy: "Re: Free project planner"
- Previous message: Rich Ackerson: "Re: Free project planner"
- In reply to: Theo Pistorius: "Re: Printing a bitmap on a Epson POS printer"
- Next in thread: Matthew Jones: "Re: Printing a bitmap on a Epson POS printer"
- Reply: Matthew Jones: "Re: Printing a bitmap on a Epson POS printer"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|