Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF and VFP data on first page
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01530528
Message ID:
01530534
Views:
62
>A Report header?
>

and using the code below to print the PDF...
LOCAL lnRetval, lcFile, lcOperation
lcFile = "\PHARMACY\NoticeofAppeal.pdf"
* Right click a file in Windows Explorer to see what other operations are available, for example Print
lcOperation = "Open"

DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
INTEGER handle,;
STRING @sFile,;
STRING @lp,;
STRING @dir,;
STRING @dir1,;
INTEGER ncmd
lnRetval = ShellExecute(0, lcOperation, lcFile, "", "", 1)
IF lnRetval = 31 && Acrobat is not installed
	loAdobeAcrobatForm = CREATEOBJECT("frmAcrobatLink")
	loAdobeAcrobatForm.show				
ENDIF
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform