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

Escape codes fo Epson POS

edited March 2006 in General
I tried to use the control font P size 10 to make a cut on a POS printer
Tmu220. It cut the paper but it advance the paper where the code is instead
of cuting when it recieve the command. What happen is that there is a paper
feed I don't want. If I use the g with the control fornt it cut the paper
but I know this font is used to make the printer primt the graphic on the
printer that was uploaded to it's memory so there is a potential problem
using this. There is on the Epson POS manual a command to set the way the
printer cut tha paper. Depending on thos codes it will feed the paper where
the font is to the cutter or make the cut at the moment the character is
sent to the printer. The GS V is the command to how the printer will make
the cut . There is a manual that shows the codes for the Tm U220
http://www.crs-usa.com/DEALER/pdf/man-275_oper.pdf

I need to controll this printer so I can controll the way it cut the paper.

Thanks

Carlos

Comments

  • edited March 2006
    Hi Carlos,

    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.

    -------------------------------------------------
    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

    --
    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.