如何查询在Windows的打印队列 [英] How to query the print queue on Windows

查看:471
本文介绍了如何查询在Windows的打印队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个关键应用,需要有最好的控制打印的文档。为了确保在其文档打印还是没有我们想要检查打印机队列。

We are developing a critical application and need to have the finest control over the documents printed. To be sure on which documents are printed or not we want to check the printer queue.

我们如何可以查询打印队列在Windows上(状态,队列列表,错误,...)?

How can we query the print queue on Windows (status, queue list, errors, ...)?

推荐答案

EnumPrinters 来获取打印机列表, EnumJobs以获得该打印机作业列表。 GetJob ,以获取信息的一个具体工作 和 SetJob更改设置该作业(暂停或取消)

EnumPrinters to get the list of printers, EnumJobs to get a list of jobs for that printer. GetJob to get info on a specific job and SetJob to change the settings for that job (pause or cancel it)

查看更多在打印和打印后台处理程序引用

.NET具有打印队列和打印服务器类。

.NET has the PrintQueue and PrintServer classes.

这篇关于如何查询在Windows的打印队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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