Did you look for a solution?
https://www.bing.com/search?q=print+the+pdf+file+using+vb+script
https://www.robvanderwoude.com/sourcecode.php?src=printpdf_vbs
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I wanted to print a file using VB script. Static file will be stored in disk so i need to print that static file using vb script.
Does anyone has an idea how to print the pdf file using vb script stored in some folder in disk?
Hi,
Please refer to these helpful discussion here:
https://stackoverflow.com/questions/50920097/printing-pdf-files-using-vbs
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information
Best regards.
**
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Or this minimal test script works for me with a .pdf file passed as argument :
Set objShell = CreateObject("Shell.Application")
strFile = WScript.Arguments.Item(0)
objShell.ShellExecute strFile, "", "", "print", 0