>Hi,
>
>I connect to a customer server (RDP) and then run a certain routine in the VFP 9 application that is suppose to open a PDF file. The opening is done by the following command:
>
>=Shellexecute(0, "open", cFileName, 3, "", "")
>
>
>The PDF file is opened but it looks like it shows in the Chrome and not Adobe Reader.
>
>Could it be that the Chrome would open PDF file way?
>
>Also, the File:// line at the top shows the PDF name with all empty spaces replaced by "%20" Is this added by Chrome? For example:
>
>file://server_name/app_name/documents/fs1%20hartness-meur%20nf.pdf
>
>
>
>TIA
You are simply passing filename.pdf, right? (Instead of passing pdf as a parameter to acrobat executable)
Then pdf would be opened with whatever application it is registered to open with on that machine. If you want to use acrobat, then change the association (right click a pdf, properties- opens with).
When it is a browser, its name would normally use %20 for spaces and also other hex values for some characters.