Printing longer than 21 cm receipts.

RGuillermo
RGuillermo used Ask the Experts™
on
Hello Experts
I am printing a receipt using a visual c sharp and an EPSON thermal POS printer.

In order to print the logo, I am using the following lines that work just fine.
            Bitmap bm1 = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            pictureBox1.DrawToBitmap(bm1, new Rectangle(0, 0, pictureBox1.Width, pictureBox1.Height));
            e.Graphics.DrawImage(bm1, hx, hy, wi, he);
            bm1.Dispose();

And because I used an image
I continue printing each line of text as an image
as follows.
            // text
            hy += (he+s2);wi = 300; he = 20;
            Bitmap tit1 = new Bitmap(wi,he);
            pictureBox5.DrawToBitmap(tit1, new Rectangle(0, 0, wi, he));
            e.Graphics.DrawImage(tit1, hx , hy, wi , he);
            tit1.Dispose();

The thing is most of the time I need to print several items and the printing is longer than the height of A4 paper size.
my printing is being truncated when the limit is reached.

How can I make receipts longer than the height of A4 ?
Regards,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Eduard GherguArchitect - Coder - Mentor

Commented:
Hi,
Firstly, the height of A4 is 29.7cm. Can you describe in a better way what's you scenario?
RGuillermoProject Manager

Author

Commented:
Yes,
I am printing receipts that can have around 100 items sold.
this means that 29.7 cm is too little, my printing stops there.

USING Epson thermal printer.

I need to be able to print receipts at least 100 cm long.
please let me know if you need more details
Top Expert 2016
Commented:
POS Printers don't use sheets of paper but a roll of thermal paper https://epson.ca/For-Work/Printers/POS/TM-T88V-POS-Receipt-Printer/p/C31CA85084
One normally prints the header/Logo as a picture and the rest as lines of text.  At the end you send a command that activates the cutter or the clerk rips off the receipt.
RGuillermoProject Manager

Author

Commented:
Yes configuring was the problem
Thank you, experts.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial