Epson Printer and Cash Drawer
Hi
I have an POS application that needs to trigger a cash drawer opening and
the end of print job.
I need to send a decimal or hexidecimal string to do this. Is there a way
to do it as part of
a report builder print job? I'm using delphi 7 and the latest version of
RB.
Thanks
Mark Mueller
I have an POS application that needs to trigger a cash drawer opening and
the end of print job.
I need to send a decimal or hexidecimal string to do this. Is there a way
to do it as part of
a report builder print job? I'm using delphi 7 and the latest version of
RB.
Thanks
Mark Mueller
This discussion has been closed.
Comments
1. You can use the Report.Printer.Canvas.Handle to access the printer device
context. 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. We do not have any direct experience with sending escape
codes directly to the printer driver.
2. The other approach is to use the Widnows DevMode structure to control the
printer. See the following article.
-------------------------------------------------
Tech Tip: Configuring Printer Specific Options
-------------------------------------------------
The Report.PrinterSetup properties can be used to set the properties that
are common to all printers. Internally RB applies these to the Windows
DevMode structure.
Report.PrinterSetup <----> Windows DevMode <-----> Printer Driver <--->
Printer
Printers often contains additional features, such as output bins, media
types, etc. The Windows DevMode structure can contain a private area that is
used the printer driver to store printer specific options. These can be
configured by using the Printer Driver's built-in properties dialog. These
options can theoritically be set programmatically, the trick is that you
have to know where in the structure to store the option and what values are
valid.
The following example shows how to display the printer properties dialog and
save the devmode for use within RB...
http://www.digital-metaphors.com/tips/SavePrinterDevMode.zip
--
Tech Support mailto:support@digital-metaphors.com
Digital Metaphors http://www.digital-metaphors.com
--
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
do you have the enterprise version
familiar with RAP?
i have a rap plugin that let you send any escape sequence to the printer....
cu
marc
well this is something that should have been included at least in the 9
version
it is really not that hard to get the job done
i've build a rap plugin function to just do that
so adding this function to the rap language is really easy to do i suppose
if you're interested just drop me an email
cu
marc
marc at xls dot be