静默打印Pdf文档 [英] Silent Printing the Pdf document

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

问题描述

大家好,

直接根据打印机名称打印pdf文档的工作.

如何在Winforms中执行此操作?

让我知道细节.

我的代码是

hi all,

working on printing the pdf document directly based on printer Name.

how can i do this in winforms?

Let me know the details.

my code is

Process objProcess = new Process();
            objProcess.StartInfo.FileName = @"F:/test.pdf";
            objProcess.StartInfo.Arguments = "/d:" + @"\\Domain\Printer Name";
            objProcess.StartInfo.Verb = "Print";
            objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
            objProcess.StartInfo.UseShellExecute = true;
            objProcess.Start();

推荐答案

查看此CP文章是否有帮助:
See if this CP article helps: Silent Print Using C#[^]


这篇关于静默打印Pdf文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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