代码之家  ›  专栏  ›  技术社区  ›  Beep beep

如何使用PrintServer和PrintQueue类

  •  5
  • Beep beep  · 技术社区  · 14 年前

    正在使用 PrintServer PrintQueue 类是否与在Windows中通过打印机查看作业相同?

    我们有一个可以直接打印到windows打印机的应用程序,但它不能创建字节数组或任何类似的可以用来调用的 AddJob . 将使用 PrintQueue.GetPrintJobInfoCollection() 检查原始打印项目状态的方法?

    1 回复  |  直到 14 年前
        1
  •  3
  •   Lance U. Matthews    6 年前

    我相信是的。请参阅中的示例 How to: Diagnose Problematic Print Job . 这篇文章说明了 PrintServer &安培; PrintQueue 识别有问题的打印作业。

    下面是使用WMI枚举打印作业的代码项目文章: http://www.codeproject.com/KB/printing/prntjobcontrollerusingwmi.aspx