使用C#打印的连续纸 [英] Print on continuous paper using c#

查看:934
本文介绍了使用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;

这篇关于使用C#打印的连续纸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆