No problem, it's just a one liner, something like this:
Shell "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32 C:\Documents and Settings\cheryltest\My Documents\ArcMap.pdf", vbNormalFocus
IE
Shell "ReaderPath DocFileSpec", WindowState
Ok, first please forgive me for being a noobie. I am working on a VB6 program to be included in a business CD. The goal is to burn it and the related .pdf files to a CD to be able to distribute to vendors and clients. Basically a autostart CD menu. VB6 is what I have to work with, not by choice.
The code lines above will open a specific version of A.R. if installed into a specific place. I need one that will open the AcroRd32 file in much more generic fashion. Is there a way to do this, so that no matter what version they have it will open the .pdf file with the "Windows default"?
This is what I have so far. It works if and ONLY if the drive letters are correct.
Private Sub Command1_Click()
Dim RetVal
RetVal = Shell("C:\Program Files\Adobe\Reader 9.0\Reader\acrord32 I:\brochure.pdf")
End Sub
If the drive letters are not right, it obviously wont work, hence the problem.
Thanx.