Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a PDF file from VFP 6.0

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
Hi, all
How could i open a .pdf file from visual foxpro??
 
Gert

Another option might be :

Code:
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd
=Shellexecute(0,"Open","c:\mypdffile.pdf","","",0)

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi

In Mikes code change the last line to..

=Shellexecute(0,"Open","c:\mypdffile.pdf","","",1)

You can also use my FAQ refered by Dave above. :)

____________________________________________
ramani - (Subramanian.G) :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top