I am using C# with Winforms. I am trying to print bills on a paper roll. The width of the paper is 3in but the length of the paper is dynamic (its a roll paper). The length
Have you tried using a page that is only "one line" long?
Omit the upper and lower border, and you can print non stop.
Now add a bit (So the page can be torn off) and eject that.
Try this:
PaperSize pkCustomSize1 = new PaperSize("First custom size", 100, 200);
printDoc.DefaultPageSettings.PaperSize = pkCustomSize1
See: http://msdn.microsoft.com/en-us/library/system.drawing.printing.pagesettings.papersize.aspx