dmCopies打印作业:没有副本 [英] dmCopies Print Job : No of Copies

查看:110
本文介绍了dmCopies打印作业:没有副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我遇到了问题,仍然很想知道如何在打印队列中找到一份dmCopies作业。我有一个系统,一直只有一个打印作业在打印队列中。我需要知道用户要求此打印作业的No Of Copies。这基本上是每个页面的副本/否或用户请求的打印集。



我试图用VB.Net做这个。框架中有错误,它总是显示1作为副本。有人可以请指导。



VB.Net中的样本赞赏。



谢谢

Vinay H

Hello

I am stuck in a issue and still curious to know how I can find a dmCopies for a job in print queue. I have a system in place where only one print job is in the print queue all the time. I need to know No Of Copies user asked for this print job. That is basically "Copies" of each page / No or print Sets user requested.

I am trying to do this with VB.Net. Framework has bug in it where it always shows 1 as Copies. Can someone please guide on this.

Sample in VB.Net appreciated.

Thanks
Vinay H

推荐答案

由于您没有发布任何代码,您是否已经尝试过 PrintTicket类 [ ^ ]



最后有一个很好的样本来查询门票。
Since you didn't post any code, have you already tried PrintTicket class[^]

There's a good sample in the end for querying tickets.


谢谢Mika,快速回复,

我尝试过使用PrintTicket,这个属性有一个已知的bug。无论用户打印多少份,它都会一直返回1份。



以下是供您参考的代码。 liCopies将永远是1.



如果您有任何解决方法,请告诉我。任何API样本都会有所帮助。



感谢您的帮助。



------- --------------

Dim lobjPrintJobs As PrintJobInfoCollection = lobjQueue.GetPrintJobInfoCollection()



For Each lObjJob作为PrintSystemJobInfo在lobjPrintJobs





Dim liCopies As Integer

liCopies = lObjJob.HostingPrintQueue.CurrentJobSettings.CurrentPrintTicket .CopyCount()



下一页



------------- -----
Thanks Mika, for your quick reply,
I have tried using PrintTicket, this property has a known bug. It returns 1 as copies all the time, No matter how many copies user prints.

Below is code for your reference. liCopies will always be 1.

If you have any workaround please do let me know. Any API sample would help aswell.

Appreciate Your Help.

---------------------
Dim lobjPrintJobs As PrintJobInfoCollection = lobjQueue.GetPrintJobInfoCollection()

For Each lObjJob As PrintSystemJobInfo In lobjPrintJobs


Dim liCopies As Integer
liCopies = lObjJob.HostingPrintQueue.CurrentJobSettings.CurrentPrintTicket.CopyCount()

Next

------------------


感谢Mika,快速回复,

我尝试过使用PrintTicket,这个属性有一个已知的bug。无论用户打印多少份,它都会一直返回1份。



以下是供您参考的代码。 liCopies将永远是1.



如果您有任何解决方法,请告诉我。任何API样本都会有所帮助。



感谢您的帮助。



------- --------------

Dim lobjPrintJobs As PrintJobInfoCollection = lobjQueue.GetPrintJobInfoCollection()



For Each lObjJob作为PrintSystemJobInfo在lobjPrintJobs





Dim liCopies As Integer

liCopies = lObjJob.HostingPrintQueue.CurrentJobSettings.CurrentPrintTicket .CopyCount()



下一步
Thanks Mika, for your quick reply,
I have tried using PrintTicket, this property has a known bug. It returns 1 as copies all the time, No matter how many copies user prints.

Below is code for your reference. liCopies will always be 1.

If you have any workaround please do let me know. Any API sample would help aswell.

Appreciate Your Help.

---------------------
Dim lobjPrintJobs As PrintJobInfoCollection = lobjQueue.GetPrintJobInfoCollection()

For Each lObjJob As PrintSystemJobInfo In lobjPrintJobs


Dim liCopies As Integer
liCopies = lObjJob.HostingPrintQueue.CurrentJobSettings.CurrentPrintTicket.CopyCount()

Next


这篇关于dmCopies打印作业:没有副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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