Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a PDF file...
Message
 
To
19/12/2002 12:08:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00734534
Message ID:
00734558
Views:
18
You can open up a PDF in a window outside of VFP using ShellExecute() with the following code:


cAction = 'OPEN'
cFile = GETFILE('pdf')

DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
DECLARE INTEGER FindWindow ;
IN WIN32API ;
STRING cNull,STRING cWinName

RETURN ShellExecute(FindWindow(0,_SCREEN.Caption),;
cAction,cFile,"",SYS(2023),1)
Previous
Reply
Map
View

Click here to load this message in the networking platform