Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Acrobat Reader form within VFP
Message
From
28/07/1999 12:39:03
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00247203
Message ID:
00247238
Views:
24
>>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
Thanks Ed I will use it.
I guess I didn't totaly have a brain fart after all. I was afraid it was some simple standard function I had forgotten about.

I am on my county's Search & Rescue team and I just got a "Come imediately" call so I won't be able to test untill tomorrow.

Thanks again
Terry
It is impossible to make programs idiot proof. Idiots are too cleaver.

MCP( Tcp/Ip )
Previous
Reply
Map
View

Click here to load this message in the networking platform