General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only