Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a PDF file...
Message
From
19/12/2002 12:19:59
 
 
To
19/12/2002 12:08:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00734534
Message ID:
00734542
Views:
22
>Greetings to all,
>Is there a way to open a PDF file from a user menu in Visual FoxPro 7.0? I have looked at FOPEN and GETFILE but still am having a little trouble. Any Ideas would be greatly appriciated.

One way would be to call the SHellExecute() API; there's a class in the FFC that acts as a wrapper on it:
oShellExec = NEWOBJECT('_shellexecute',home() + '_environ.vcx')
=oShellExec.ShellExecute('MyPDF.PDF')
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