如何用C#获取打印作业状态作业、如何用、状态

2023-09-04 00:38:55 作者:命硬

我通过很多链接1 的。我是在C#检查作业状态链接能够打印文档,但我没有怎么弄支持它的地位?

I went through many Link1 Links for checking Job Status in C#.I am able to Print a document but I did not get how to get back its status?

其实我是想获得确认从打印机上的文件是否已成功打印或不。此外,我也有兴趣,如果我可以从打印机收到错误信号,就像如果卡纸。

I actually want to get confirmation from the printer whether the document was successfully printed or not. Moreover, I am also interested if I can get error signal from printer, like if paper is jammed.

我的打印机名称和文件名,我要打发了Print.Has任何人在这方面做了一些RND或能指导我一些资源?

I have the Printer Name and Document name which I am sending for Print.Has anybody done some RnD in this area or can guide me to some resource?

最良好的祝愿, 巴桑塔Padhi

Best Wishes, Basanta Padhi

推荐答案

有样品在线...谷歌送PJL在C#中的命令(PJL代表打印机作业语言)

there are samples online... google "sending PJL commands in c#" (PJL stands for printer job language)

$ C $的CProject 读取数据直接从打印机是一篇好文/样品下手

codeproject Reading Data Directly from the Printer is a nice article/sample to start with