Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open .PDF file
Message
From
21/03/2000 06:28:54
 
 
To
20/03/2000 19:35:25
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00347664
Message ID:
00348238
Views:
21
>Hi, Ed
>
>I apreciate your response, but for a begginer is to much,
>
>>>You need to ensure that the Acrobat Reader is installed on the target system
>Ok, is like word if not installed it can't work.
>
>>>at which point, you can launch a .PDF file with the ShellExecute() API call or the FFC class that implmenets ShellExecute().
>Didn't you have a litle piece code for me to see, is the first time i do that.
>

You're being incredibly lazy, since it's part of the FFC, you have the entire thing sitting right there in VFP, and there have been hundreds of threads on this and similar topics in the past two months. Include the _environ.vcx from the FFC in your project

oShellExecute = NEWOBJECT('ShellExecute','_environ.vcx')
oShellExecute.ShellExecute('name of the file.pdf')

>Word, i can open it from vfp, is no similar code to open a pdf file.

It works the same way for Word - specify a .DOC, it fires up Word, specify an .XLS, it starts Excel, etc. There's no magic.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform