Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DDE with Arcobat Reader
Message
From
13/10/2009 11:22:17
 
 
To
13/10/2009 11:09:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01429114
Message ID:
01429180
Views:
49
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform