PrinterSettings.Copies仍然被忽略? [英] PrinterSettings.Copies still ignored?

查看:415
本文介绍了PrinterSettings.Copies仍然被忽略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了一些旧消息,被忽略的PrinterSettings.Copies是一个已知的bug。我想知道是否有人知道修复或解决方法。


我想要实现的是在后台打印三份报告。我的代码基于示例,该示例显示了如何从命令行打印本地报告并且正常工作,期望上述情况。


我想使用用于EMF数据的流可能是解决方案,但这意味着发送到打印机的报告是不必要的。我希望打印机制作副本,而不是工作站。


感谢您的建议。


解决方案

我遇到了同样的问题,但我找到了解决办法。


以下是原因:


并非所有打印机都支持打印多个应对程序。  如果份数设置高于打印机支持的最大份数,则只打印最大份数,并且不会发生例外。


 这是打印机的问题

I read in some old messages that PrinterSettings.Copies being ignored is a known bug. I was wondering if anyone knows of a fix or a work-around.

What I want to achieve is print three copies of a report in the background. My code is based on the example which shows how to print local reports from the commandline and works alright, expect for the above.

I guess playing with the streams used for the EMF data could be a solution,  but that would mean that the report that is sent to the printer is unnecessary big. I want the printer to make the copies, not the workstation.

Thank you for your advice.

 

解决方案

i meet the same problem,but i have found the solution.

Following is the reason:

Not all printers support printing multiple copes.  If the number of copies is set higher than the maximum copies supported by the printer, only the maximum number of copies will be printed, and no exception will occur.

 that is the printer's problem.


这篇关于PrinterSettings.Copies仍然被忽略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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