Open file (PDF) in print mode?

gbuckton

Registered User.
Local time
Today, 09:37
Joined
Aug 20, 2008
Messages
38
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
 
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 :)
 

Users who are viewing this thread

Back
Top Bottom