使用C#打印的连续纸

由网友(夏末之初°)分享简介:我写一个POS系统。我想打印在连续纸,但我不知道如何我能做到这一点。I write a one POS system. I want to print on continuous paper but I don't figure out how I can accomplish this.我用的是.NET(C#)。...

我写一个POS系统。我想打印在连续纸,但我不知道如何我能做到这一点。

I write a one POS system. I want to print on continuous paper but I don't figure out how I can accomplish this.

我用的是.NET(C#)。我尝试用水晶报表以及System.Drawing中的类。

I use the .net (C#). I try with crystal report as well as System.drawing classes.

任何想法将是我很有帮助...

Any idea will be helpful for me...

推荐答案

如果您使用的是C#的PrintDocument 来生成您的打印作业,可能你只是初始化文件大小为您所需要的页眉/页脚,然后递增PageHeight属性你画一个新的前行?

If you're using a C# PrintDocument to generate your print job, could you just initialize the paper size to what you need for header/footer then increment the PageHeight property before you draw a new line?

printdoc.DefaultPageSettings.PaperSize.Height += lineheight;
阅读全文

相关推荐

最新文章