It's working.
Thank you Alex, it was helpful
>
>I would like to open a .pdf file from a VFP desktop application. I'm puzzled because the acrobat is randomly placed in the clients workstations.>
>As long as Acrobat or a PDF reader is installed, use Windows to open a file using the extension association.
>
>DECLARE INTEGER ShellExecute ;
> IN SHELL32.DLL ;
> INTEGER nWinHandle,;
> STRING cOperation,;
> STRING cFileName,;
> STRING cParameters,;
> STRING cDirectory,;
> INTEGER nShowWindow
>
>lcFilename = "sample.pdf"
>lcFolder = "c:\temp"
>RETURN ShellExecute( 0, "Open", lcFilename, "", lcFolder, 1)
>
C.Taveira