I have a VFP 6.0 app that has been moved to a Win 2008 R2 Standrad SP1 64 Bit server. The program runs fine on the server, but the ShellExecute doesn't open any PDF files. I don't get any errors or warnings, it just doesn't open the PDF. I can go to the folder the PDF file is in and dbl-click it and the file opens in Adobe Reader X. The app will open a .txt file in notepad using this code. The network tech has Adobe Acrobat 8.1 and Adobe Reader Reader X 10.1 installed. The PDF files have the Adobe Reader Reader X set as the default program. Do you think this is an Adobe setup problem, or do I have to change how I call the ShellExecute to get this to work?
cFullFileName is the full path to the PDF file.
Auguy
Sylvania/Toledo Ohio
Code:
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFullFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
Code:
ShellExecute(0, "open", cFullFileName, "", "", 1)
Auguy
Sylvania/Toledo Ohio