Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DDE with Arcobat Reader
Message
De
13/10/2009 11:22:17
 
 
À
13/10/2009 11:09:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Divers
Thread ID:
01429114
Message ID:
01429180
Vues:
48
>You could change the default printer just before and then set it back right after...
>
This works , ie to a non default printer - sort of - I get acroreader popping up. But hey - it goes to a non default printer

Adapted Sergey's code
	DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
	INTEGER hwnd, ;
	STRING lpVerb, ;
	STRING lpFile, ;
	STRING lpParameters, ;
	STRING lpDirectory, ;
	LONG nShowCmd

	PrinterName = 'HP C6180'
	
	?ShellExecute(0, "printto", 'd:\tmp\1.pdf', '"' + m.PrinterName + '"', '', 0)
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform