escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

Cheques printing

Open thomasherisson opened this issue 1 year ago • 2 comments

Hello ! Is it possible to print cheques with an epson printer that prints receipts and cheques?

thomasherisson avatar Apr 03 '24 09:04 thomasherisson

Hi, I would also be interested in this. I own TM-H6000III. Thank you much!

darkponay avatar Oct 07 '24 09:10 darkponay

Hi,

Found a simple way to add slip printing (in my case it works with TM-H6000III).

Just add this in the file vendor/mike42/escpos-php/src/Mike42/Escpos/Printer.php

     /**
     * Select Slip printing.
     * Eject the paper with feedForm()
     */
    public function selectSlip()
    {
        $this -> connector -> write(self::ESC . "c0" . chr(4));
    }

     /**
     * Select roll printing.
     */
    public function selectRoll()
    {
        $this -> connector -> write(self::ESC . "c0" . chr(1));
    }

darkponay avatar Jan 06 '25 22:01 darkponay