• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 585
  • Last Modified:

Displaying a PDF file from vba

I have a MS Access application for finding a specified PDF file and displaying it on the screen by using the command line options for Adobe reader.
It works well except that Adobe reader always comes up minimized at the bottom of the screen and I have to click on it to maximize.  
How can I get it to automatically display in maximized mode?
0
dsoderstrom
Asked:
dsoderstrom
1 Solution
 
Rey Obrero (Capricorn1)Commented:
use shell

Call Shell("C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe " & "'" & strFileName & "'", vbMaximizedFocus)
0
 
dsoderstromAuthor Commented:
That's what I was looking for.
Thank you!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now