C# 以编程方式在 wpf 应用程序中打印 pdf 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18915811/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C# print pdf file in wpf application programatically
提问by Goku503
I have a WPF application and I want to be able to print PDF document, but I don't want use the Adobe Reader (because I don't know if on client machine adobe was installed). Is there another way to print pdf in different manner programmatically in C#.
我有一个 WPF 应用程序,我希望能够打印 PDF 文档,但我不想使用 Adobe Reader(因为我不知道客户端机器上是否安装了 adobe)。有没有另一种方法可以在 C# 中以不同的方式以不同的方式打印 pdf。
采纳答案by Dusan Plavak
you can use cmd command to print, so in your program use exec... more info here
你可以使用 cmd 命令来打印,所以在你的程序中使用 exec ... 更多信息在这里
or then here in C#
或者在 C# 中

