Solved

Displaying a PDF file from vba

Posted on 2013-11-11
2
541 Views
Last Modified: 2013-11-11
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
Comment
Question by:dsoderstrom
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39639930
use shell

Call Shell("C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe " & "'" & strFileName & "'", vbMaximizedFocus)
0
 

Author Closing Comment

by:dsoderstrom
ID: 39639966
That's what I was looking for.
Thank you!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question