Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How do I send Escape Sequences to a Printer?

edited November 2005 in General
I use Delphi 6 and RB6.01 My client has chosen NowDocs to provide the forms
we will be printing on. Basically, a check form, along with the signatures
are encoded on a DIMM module that is inserted into a printer. This form is
activated by sending an escape sequence to the printer.

Using Reportbuilder, I could use normal components to place the data onto
the page as I normally would. But I can't use a page style component
because we are not using image files on a PC, for security reasons. There
will be two different DIMM modules for our payroll (regular checks and
direct deposit advices), for example. How would I send an escape sequence
for printing the data and form on a single page?

Thanks in Advance!

Debbie Erickson
Knowles-McNiff, Inc.

Comments

  • edited November 2005
    Hi Debbie,

    ReportBuilder renders to the printer using the Delphi TCanvas class and via
    calls to Windows GDI functions.

    We do not have any direct experience with sending escape codes directly to
    the printer driver. According to the Windows API documentation, the
    ExtEscape function allows applications to access capabilities of a
    particular device that are not available through GDI. Try searching the
    Windows API docs and Google for more information.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.