Printing on roll paper

后端 未结 5 1985
忘掉有多难
忘掉有多难 2020-12-29 04:44

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

5条回答
  •  清酒与你
    2020-12-29 05:05

    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

提交回复
热议问题