Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DocumentProperties anyone?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01010251
Message ID:
01010624
Views:
23
Hi Barbara,


>>Quote from the site:
>>"Or make this configuration as the default for this printer and for all applications using this printer. This procedure is !!! different !! for Windows NT/2000 or Windows 95/98:"
>>
>>
>>yes it uses GetPrinter() .. but only on WinNt/2000/ .. on 95/98/ it uses DocumentProperties()
>>
>
>Yes, I realize this, but I didn't want to get into trying to create saved configurations. GetPrinter is a newer API that only works on NT and 2000. DocumentProperties works on all Windows platforms. Well, maybe not Windows 3, but we're not counting that. ;-)
>

GetPrinter is supported on Win9X/ME as long as you use 1, 2 or 5 for Printer Info level


>>also the SendMessage() function at the bottom can be important ... maybe VFP caches Printer Settings somehow and the SendMessage forces VFP to reread the settings (one never knowns)
>>
>
>I'll look into this one. Thanks! I've seen a LOT of documentation on DocumentProperties, and this is the first time I've seen SendMessage() used.


Actually, in MSKB link you had posted is lead to another example and more complete:
How To Modify Printer Settings by Using SetPrinter
http://support.microsoft.com/kb/140285/EN-US/

Good luck
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform