PrintDocument (c#) 忽略打印机配置
我配置了一些逻辑打印机并指向同一台物理打印机。每个逻辑打印机都配置有特定的输入和输出托盘。打开文档(例如 pdf)并打印到这些打印机中的任何一台都会产生正确的输入/输出打印。然而,我开发了一个Windows服务(win2003),当我使用PrintDocument类进行打印时,打印机会忽略目标逻辑打印机的配置,并仅使用(它会出现)默认设置(例如任何输入托盘=>)进行打印。顶部出纸盒)。我在 XP 机器上尝试过相同的服务,一切正常。
有什么想法吗?
谢谢 肖恩
I've got a few logical printers configured and pointing to the same physical printer. Each logical printer is configured with a specific input and output tray. Opening a document, e.g. a pdf, and printing to any one of these printers results in a correct input/ouput print. However i've developed a windows service (win2003) and when i use the PrintDocument class to print, the printer ignores the configuration of the target logical printer and just prints using (it would appear) default settings (e.g. any input tray => top output tray). I've tried the same service on an XP machine and it all works fine.
Any ideas?
Thanks
Sean
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,问题似乎是打印机配置设置是用户特定的。因此,一旦我以运行该服务的用户身份登录并配置了打印机,一切工作正常。
Ok seems the problem is the printer configuration settings are user specific. So once i logged in as the user that the service is running under, configured the printer - all worked fine.