View Full Version : Open file (PDF) in print mode?


gbuckton
09-08-2008, 11:42 AM
Hello,

I currently have the code so that a button click will open a PDF file:

Application.FollowHyperlink "C:\documents\file.pdf"

However, I'm wondering if it's possible to add code so that the PDF opens in Print Mode?

thanks
G

nIGHTmAYOR
09-08-2008, 12:58 PM
Actually this isnt realy an Access nore VBA question , what you are achieving here is running your pdf file with whatever reader assigned to open such an extension.
Now how to achieve your goal is by rather googleing switches for your acrobat reader of choice and manage it to be installed by default along with your application and then have it run instead with print switches than rather calling your file directly.
Now I haven't googled PDF readers that accept switches or DDE to recommend one, however i believe its an easy task for you.

PS : the solution should come close to :
Application.FollowHyperlink "C:\Progra~1\Acroread\acro.exe C:\documents\file.pdf /print"
or so :)