Can I run Acrobat from within Access?

  • Thread starter Thread starter tintin
  • Start date Start date
T

tintin

Is it possible to have a command button on a form which opens a pdf in
window on the form? I'm not looking for a solution at this stage, jus
need to know if it is possible. I'm aware that I can use a macro to ru
an external program, but I would need to open a specific file, brows
through it and then close it, returning focus to Access.
Any comments, advise appreciated.
Tinti
 
tintin said:
Is it possible to have a command button on a form which opens a pdf in a
window on the form? I'm not looking for a solution at this stage, just
need to know if it is possible. I'm aware that I can use a macro to run
an external program, but I would need to open a specific file, browse
through it and then close it, returning focus to Access.

See API: Start an app with ShellExecute
(Q) How do I start the application which is registered to handle a
file extension in Win Registry?
http://www.mvps.org/access/api/api0018.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Actually, you don't have to shell out to run Acrobat or load a PDF file on a
form. Add the Adobe Acrobat Control for ActiveX to your form and then set
the .src property of the control to the PDF file you want to display. You
can't search the file, or really "browse" through it, but you can print it
etc. If by browse you mean move form page to page, then you really need to
use COM to instantiate Acrobat and use its automation interface load and
manipulate the file, using the AcroExch object. (See the Acrobat SDK.)
 
Back
Top