Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Amyuni PDF converter to Printer
Message
From
30/01/2001 11:24:44
 
 
To
30/01/2001 11:16:11
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00470096
Message ID:
00470108
Views:
44
>Anyone using Amyuni PDF converter know if it is possible
>to send the PDF file to a printer after creating it?

You can use the ShellExecute API call if Acrobat Reader is installed.
=ShellExec("myPDFfile.pdf", "Print")

FUNCTION ShellExec(tcFile, tcAction)
	LOCAL lcAction 
	IF VARTYPE(tcAction) == "C"
		lcAction = ALLTRIM(tcAction)
	ELSE
		lcAction = "Open"
	ENDIF
	
	*-- NOTE: Taken from Rick Strahl's article in FoxPro Advisor
	*-- March 1998 issue (page 54-55)
	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), ;
						 lcAction, ;
						 tcFile, ;
						 "", ;
						 SYS(2023), ;
						 0))
ENDFUNC
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform