Tracy,
I tried code similar to yours...
DECLARE integer ShellExecute IN "Shell32.DLL" ;
integer hwnd, ;
string lpVerb, ;
string lpFile, ;
string lpParamenters, ;
long nShowCmd
= ShellExecute(0, "Open","acrord32.exe", "y:\tx2004b1\guide\start.pdf", "", 3)
and also the following code from the link you had...
DECLARE integer ShellExecute IN Shell32 ;
integer hwnd, ;
string lpVerb, ;
string lpFile, ;
string lpParamenters, ;
integer nShowCmd
= ShellExecute(0, "Open","y:\tx2004b1\guide\start.pdf","", "", 3)
In both cases I got an error message "Too many arguments". I've got Acrobat 5.0 installed on my Win 2K computer.
What am I doing wrong?
Ken Penrod
>Actually, I take that back. If there is a registry entry for acrord32.exe then it works without the path. I just tested the below succsfully:
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER hwnd, ;
> STRING lpVerb, ;
> STRING lpFile, ;
> STRING lpParameters, ;
> STRING lpDirectory, ;
> LONG nShowCmd
>
>llok=ShellExecute(0, "open", "acrord32.exe", " /p /h c:\acordforms\finishedforms\61nc.pdf", "", 0)
>