Solved

Displaying a PDF file from vba

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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.
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 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

25 Experts available now in Live!

Get 1:1 Help Now