Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amyuni PDF converter to Printer
Message
 
 
À
30/01/2001 11:16:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00470096
Message ID:
00470108
Vues:
39
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform