Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute() and Chrome?
Message
From
25/01/2019 10:52:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01665727
Message ID:
01665730
Views:
61
>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.
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform