Solved

Displaying a PDF file from vba

Posted on 2013-11-11
2
514 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 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
use shell

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

Author Closing Comment

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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now