Re: Printing a bitmap on a Epson POS printer

From: john (john_at_johnsDummyAddress.com)
Date: 05/21/04


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



Relevant Pages

  • Re: Windows 7 WDK Mirror Driver Question
    ... then Delphi they both access the same api's, ... No driver writing in delphi. ... I hope someone can explain the key asspects, of doing the drawing yourself. ... bitmap has changed. ...
    (microsoft.public.development.device.drivers)
  • DBX Drivers
    ... I tried running an app and I dont have the driver?? ... Using Delphi 2007 update 3. ...
    (borland.public.delphi.non-technical)
  • Re: The War On HLA
    ... Best code in delphi is a few lines at most. ... > As macros expand in-line and are the same as simply writing the code ... They may have gotten a lot of other features too and I must admit, I dont ...
    (alt.lang.asm)
  • Re: monitor not vga compatible help
    ... > keyboard,I cant spell very well and it is taking me a long time to write ... > I dont think that what I wrote was so hard to understand but it was ... >>> compatible i dont have disc know that xp has this driver but i read ... >>> understand it it is a tft monitor proview i have been to the sight ...
    (microsoft.public.windowsxp.general)
  • Re: monitor not vga compatible help
    ... I dont think that what I wrote was so hard to understand but it was a ... >> compatible i dont have disc know that xp has this driver but i read ... >> understand it it is a tft monitor proview i have been to the sight ... > 1) Please learn how to post using the common nuances of written English. ...
    (microsoft.public.windowsxp.general)