Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Acrobat Reader form within VFP
Message
From
28/07/1999 12:10:47
 
 
To
28/07/1999 11:57:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00247203
Message ID:
00247209
Views:
22
>I have a dumb question. How do I run Acrobat Reader from with in VFP6 passing it the PDF file to display. I tried RUN but it just brought up a DOS window and did nothing. DO quite correctly told me it was not compiled in VFP. I am stuck in brain fart hell from here.
>

The easiest thing to do here would be to use a Win32 API call, ShellExecute(), which can launch a document directly. if you're using VFP6, there's an FFC class that implements ShellExecute() (called, strangely enough, ShellExecute); Dave Frankenbach's web site has sample VFP code to use ShellExecute, there's probably code in the Files Section or FAQ here on ShellExecute() (I didn't look), and both he Shell.Application and Wscript.Shell automation objects (Shell.Application is an automation object that became a part of Win9x/NT with the release of Shell version 4.71; it's available on all but original Win95/Win95a systems that don't have a later shell version from IE 4 or later in place, and Wscript.Shell is an automation onject that's part of the Windows Scripting Host, built into Win98 and Win2K, and which can be added to virtually all Win9x/WinNT systems by installing the freely-redistributable WSH components, downloadable from msdn.microsoft.com/scripting).

Wscript is a favorite of mine; the beta of WSH 2.0 is out, and is incorporated into Win2K. It adds considerably to the capabilities of the Wscript.Shell and Wscript.Network automation objects. The 1.0 release with the version 5.0 VBScript engine is a part of IE5, and is very strong and stable.

>Thanks in advance
>
>Terry
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