troubleshooting Question

Printing longer than 21 cm receipts.

Avatar of RGuillermo
RGuillermoFlag for United States of America asked on
Printers and Scanners
4 Comments1 Solution65 ViewsLast Modified:
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,
ASKER CERTIFIED SOLUTION
David Johnson, CD
The More I know, the more I don't know
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros