Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF files
Message
From
21/09/2000 00:41:07
 
 
To
20/09/2000 14:16:14
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00418661
Message ID:
00418863
Views:
26
Absolutely:
SET DEFA TO HOME() && Place the PDF you want to open in your home() directory.
=ShellExec(HOME()+ [ThePDFYouWantToLaunch.pdf])  && Replace ThePDFYouWantToLaunch.pdf with the PDF you want to open.

PROCEDURE ShellExec
LPARAMETERS tcFileName,tcWorkDir,tcOperation
LOCAL lcFileName,lcWorkDir,lcOperation

IF EMPTY(tcFileName)
	RETURN -1
ENDIF
lcFileName=ALLTRIM(tcFileName)
lcWorkDir=IIF(TYPE("tcWorkDir")="C",ALLTRIM(tcWorkDir),"")
lcOperation=IIF(TYPE("tcOperation")="C" AND NOT EMPTY(tcOperation),ALLTRIM(tcOperation),"Open")

DECLARE INTEGER ShellExecute ;
	IN SHELL32.DLL ;
	INTEGER nWinHandle,;
	STRING cOperation,;
	STRING cFileName,;
	STRING cParameters,;
	STRING cDirectory,;
	INTEGER nShowWindow
RETURN ShellExecute(0,lcOperation,lcFileName,"",lcWorkDir,1)
ENDPROC
Dave

>What is the best way to view a PDF file through VFP? Can Adobe Acrobat be launched from VFP?
>
>Thanks a bunch.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform