Re: FS q command



DelphiNew wrote:
>
> I'm developing a Delphi application where I have to print
> tickets with a logo (bitmap), but I have to print it using ESC/p
> commands (I can't use StretchDIBits, StretchDraw...).

And why do you *have to* print bitmaps on that tedious way?

Remember that Delphi is a Windows tool, and the productive idea is to
use those ready made tools that Windows offers, instead of yourself
writing everything in the hard way.

If you select any POS (Point Of Sale) printer that has Windows drivers
and supports Windows graphics, you can print those tickets and bitmaps
using any standard Delphi reportin package. QuickReport is fine for
that.

> Exists any easier way to print bitmaps directly without using the
> printer drivers?

No, just use the printer drivers and all the existing code and
technology that lies behind that path.

One choice to print logos is to use a POS printer that has built in
graphics printing capabilities. For instance low cost Star 100 model
http://www.starmicronics.co.uk/products/printers/tsp100.html
You use the graphics software that comes with the printer, and download
your logos and pictures to the printer memory. They will stay there even
if the power is switched off. Logos will print before/after any printout
that your app sends to the printer.

Star printer driver itself guides the printer's paper cutter and also
opens the cash drawer automatically. You no more have to use or send any
ESC-sequences to the printer.

> Any example will be appreciate.

Take any of those QReport demo applications that are in your \DEMOS sub
directory, and try printing them on any Windows graphics capable POS
printer, and you'll soon get the simple idea.

DB-1
.



Relevant Pages

  • Re: Is there a way of ScanLine asm function for D1?
    ... through a lot of trouble... ... Delphi 1 bitmaps are not Device Independent, ... Search at Torry's or Delphi Super Page (or any other of your favourite ...
    (borland.public.delphi.language.basm)
  • Re: Adding images to a listview
    ... It would be possible for Delphi to generate correct code ... for the .NET CF, but, given the size of that market versus the size of the ... I'm using Delphi 2006 with the included CF compiler. ... The bitmaps used are located as BMP-files in the application's ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Adding images to a listview
    ... (I don't want to insult you I simply want to state that MS is a bit shortsighted for CF development and only looking on their own tools and event them not fully ) ... The bitmaps used are located as BMP-files in the application's directory. ... because I either had to buy them or install some trials which just occupy too much space when you're normally developping with Delphi and this already contains a compiler for CF. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Delphi Art - C++Builder seria
    ... > excellent for Delphi 5. ... > ability to easily add the logos to your apps. ...
    (borland.public.delphi.non-technical)
  • Build a marketing campaing ourselves?
    ... how about have a community-based campaing around Delphi? ... How about Borland permit distribute any personal version of Delphi with ... - Produce some nice logos ...
    (borland.public.delphi.non-technical)