hyperjase Posted May 7, 2014 Posted May 7, 2014 I found a topic on this from 3 years ago with some code and links to some .au3 files, however, it appears much has changed within that time and it doesn't work. I need to print a PDF, it's created by a webpage (for simpler methods, it saves to a network location) - is it possible to open a PDF viewer to print the document, or would it even be possible to get the PDF directly from the webpage (using inetget)?
Moderators JLogan3o13 Posted May 7, 2014 Moderators Posted May 7, 2014 Using InetGet would be simple enough, have you looked at the examples in the help file? $oFile = InetGet("http://kosovo.ohchr.org/repository/docs/2_slo_sample.pdf", @DesktopDir & "\MyPDF.pdf") "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
hyperjase Posted May 7, 2014 Author Posted May 7, 2014 Actually just managed to achieve that - a heck of a lot simpler than I thought it would be! It's just now getting it to print silently (as PDF)
hyperjase Posted May 7, 2014 Author Posted May 7, 2014 Unbelievably ... this works: ShellExecuteWait("C:\Print.pdf","","","Print",@SW_MINIMIZE)
ijourneaux Posted May 23, 2014 Posted May 23, 2014 Thanks for posting this tidbit. Very useful. Is there an option to send to a specific printer? ShellExecuteWait("C:Print.pdf","","","Print",@SW_MINIMIZE)
jguinch Posted May 23, 2014 Posted May 23, 2014 If it can help, I usually use an external application for PDF print, to be sure that it works, even if there is no PDF Reader installed. I use Sumatra PDF (portable version). With some command line parameters, you can either print on the default printer or on that of your choice. Gianni and argumentum 2 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
TalivanIBM Posted December 31, 2014 Posted December 31, 2014 If it can help, I usually use an external application for PDF print, to be sure that it works, even if there is no PDF Reader installed. I use Sumatra PDF (portable version). With some command line parameters, you can either print on the default printer or on that of your choice. Thank You, this Application is great, it works so good for me, I was needing to print to a not default printer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now