Hi guys, I have an issue with opening pdf documents. I have an tool, with an button when the button is pressed an vbs script run. In the script i have the following for opening pdf docs:
Case "PDF"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "AcroRd32.exe " & cFileName, 1
But when you click on the button adobe will open and stay in the background. When I press shift and the press the button the pdf document will be openend with adobe.Is there a way to open the pdf document without pressing the Shift key first? I have tried to add the following line but it did not help:
WshShell.SendKeys "+"
Does anyone have a good tip for me?
Case "PDF"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "AcroRd32.exe " & cFileName, 1
But when you click on the button adobe will open and stay in the background. When I press shift and the press the button the pdf document will be openend with adobe.Is there a way to open the pdf document without pressing the Shift key first? I have tried to add the following line but it did not help:
WshShell.SendKeys "+"
Does anyone have a good tip for me?