Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print pdf file directly in VFP?
Message
 
 
To
13/10/2009 06:56:59
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Miscellaneous
Thread ID:
01429099
Message ID:
01429103
Views:
268
>I need to print out pdf file directly from VFP. Could anyone show me hot to do this.

Try
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
	INTEGER hwnd, ;
	STRING lpVerb, ;
	STRING lpFile, ;
	STRING lpParameters, ;
	STRING lpDirectory, ;
	LONG nShowCmd

ShellExecute(0, "print", FULLPATH(lcFileName), "", "", 0)
It'll use application associated with .PDF files to print them to the Windows default printer.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform