本文介绍了从服务使用StartDoc()API时不打印.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从可执行文件中使用StartDoc()API时,它将请求放入打印机队列.但是,当从服务中使用StartDoc()API时,它将启动将文件另存为XPS"对话框.它不会在打印机队列中发布请求,也不会打印页面. StartDoc()API无法使用系统上配置的默认打印机.它正在选择"XPS文档编写器".我希望StartDoc()API的行为像从可执行文件使用时一样.

谢谢,Sunil

When StartDoc() API is used from a executable, it puts a request in printers queue. But when StartDoc() API is used from a service, it launches a "Save the file as XPS" dialog. it does not post a request in printers queue and the page does not get printed. StartDoc() API is not picking up the default printer configured on the system. It is picking the "XPS Document writer". I want StartDoc() API to behave like it is behaving when used from a execuatble.

Thanks, Sunil

推荐答案


这篇关于从服务使用StartDoc()API时不打印.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 13:55