Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Displaying a PDF file from vba

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

860 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