来自PrintDocument的多页文档无法正常工作 [英] Multi page document from PrintDocument is not working

查看:92
本文介绍了来自PrintDocument的多页文档无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在通过PrintDocument从数据表中打印报告.问题是它进入无限循环,并且在所有页面上都打印相同的数据.我用过e.HasMorePages = True.处理程序.

没有看到您的代码,就不可能告诉您您做错了什么.


Hi,

I am printing a report from datatable through PrintDocument. The problem is it goes to infinite loop and it is printing the same data on all the pages. I have used e.HasMorePages = True.

解决方案

Your code is apparentlty not tracking what it has printed (what page it''s on) between calls to the PrintPage handler.

Without seeing your code, it''s impossible to tell you what you did wrong.


这篇关于来自PrintDocument的多页文档无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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