如何在c#,winforms的最后一行打印后停止打印? [英] how to stop printing after last line printing in c#,winforms?

查看:63
本文介绍了如何在c#,winforms的最后一行打印后停止打印?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家



i使用c#在winforms中开发了一个打印应用程序,我的打印文档有

3行。但是打印机没有立刻停止它需要更多的纸张空。



如何在最后一行复杂后立即停止打印?



提前感谢

hi experts

i developed a printing application in winforms using c#, my print document have
3 lines.but printer did't stop immediately it takes some more paper empty.

how can i stop printing immediately after complication of last line?

thanks in advance

推荐答案

打印三行中的最后一行时,在PrintPage事件处理程序中将 PrintPageEventArgs.HasMorePages 属性设置为false - 这将告诉系统当前页面是最后一页。
Set the PrintPageEventArgs.HasMorePages property to false in the PrintPage event handler when you print the last of the three lines - that will tell the system the current page was the last one.


我遇到了同样的问题你找到了解决方法吗?
i'm having the same problem did you find any solution for that ?


这篇关于如何在c#,winforms的最后一行打印后停止打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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