Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DocumentProperties anyone?
Message
From
03/05/2005 15:38:26
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01010251
Message ID:
01010595
Views:
28
Hi,

"One interesting thing they show when saving the settings is they're using a NULL for the first Devmode parameter instead of the same value they pass to the second Devmode parameter. I don't think it really matters because the first one is just the output, and we don't need output at that point. Also, I'm trying to stay away from using the GetPrinter API because my client still has some machines running Win98."

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()

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)

Regards
Christian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform