Adobe Shell function (1 Viewer)

M

mangatj

Guest
Dear Forum
I am trying to customise an Access database written by my colleague who has since left the company.

On one of the forms, there is a button which allows you to view a microsoft word document stored in a file. The current underlying VB shell function used is to navigate to this document:

Shell strPath & strDocument, vbNormalFocus

The problem I have is that I would like to attach a .pdf document instead of the microsoft word document, and the most obvious thing to do is to change the current strPathToWord, to the strPathToAdobe, and then change the actual path to navigate to AcroRD32.exe, instead of Winword.exe, However this doesn't work. Can anyone help please, i.e. is there a different shell function for adobe applications?

Regards

Jay
 

ghudson

Registered User.
Local time
Today, 09:07
Joined
Jun 8, 2002
Messages
6,195
Shell has it's limitations for which you might have found if were searching around the forum. Each version of Adobe is installed in a different directory. How do you know which version of Adobe the user has installed [if they even have one installed]?

I prefer the ShellExecute method I am using to open a file in my
Browse [Find a directory or file] sample.

ShellExecute does not have the problems the Shell() function sometimes has.
 

Users who are viewing this thread

Top Bottom