请帮助初学者. [英] Please help a beginner.
问题描述
您好,我是vb.net的初学者,我想问你们如何打印外部pdf文件.
我想做的过程是:
Hello, i'm a beginner in vb.net, i would like to ask you guys on how do i print an external pdf file.
the process i would like to do is:
1:单击一个按钮
2:打开一个打印视图窗口,在这里我可以看到用于打印文件的选项.例如:选择打印机或默认打印机,纸张尺寸,方向等.
1: click a button
2: opens a print view window where i can see my options for printing the file. Ex: select printer or default one,paper size, orientation, etc.
...谢谢.
推荐答案
我想问你们如何打印外部pdf文件.
i would like to ask you guys on how do i print an external pdf file.
您可以使用PDF阅读器的功能.例如,Acrobat Reader支持/p< filename>.命令行选项,可直接进入打印对话框.
http://www.robvanderwoude.com/commandlineswitches.php#Acrobat
You use the facilities of your PDF reader. For instance, Acrobat Reader supports a /p <filename> command line option which takes you straight to the print dialog.
http://www.robvanderwoude.com/commandlineswitches.php#Acrobat
其他PDF阅读器可能会具有类似的功能.
Other PDF readers will likely have a similar feature.
您可以使用Process类的方法来通过命令行参数执行另一个应用程序.特别是带有包含应用程序名称和命令行的重载的Start方法:
https://msdn.microsoft.com/en-us/library/h6ak8zt5 (v = vs.110).aspx
You use the methods of the Process class to execute another application with a command line argument. In particular, the Start method with the overload that includes the application name and the command line:
https://msdn.microsoft.com/en-us/library/h6ak8zt5(v=vs.110).aspx
这篇关于请帮助初学者.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!