Printing on continuous paper using C #

I am writing one POS system. I want to print on continuous paper , but I don’t understand how I can do this.

I am using .net (C #). I try to use a crystal report, as well as System.drawing classes.

Any idea would be helpful to me ...

+6
c # printing crystal-reports
source share
2 answers

If you use C # PrintDocument to create a print job, can you just initialize the paper size to what you need for the header / footer, and then increase the PageHeight property before you draw a new line?

 printdoc.DefaultPageSettings.PaperSize.Height += lineheight; 
+1
source share

I think you have three options: 1) Before printing, you can pre-calculate the print 2) While you are printing elements, check the Y position and compare it with the maximum Y position for the elements. If it is larger than the maximum, the footer is print and a Y position is Y for non-printable items. 3) Create an invisible box for each element and calculate how many of them fit into the page. Then you just need to separate the elements on the pages.

I hope my English is good enough.

0
source share

All Articles