Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DocumentProperties anyone?
Message
De
03/05/2005 15:38:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01010251
Message ID:
01010595
Vues:
29
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform