Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the default Windows printer from VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00485503
Message ID:
00486643
Vues:
7
>George
>
>Intersting - it doesnt't work until .....
>
>
>Follow it by SET PRINTER ON PROMPT - it still shows the wrong printer - select the required printer again and it works. Very confusing though
>
Colin,

GETPRINTER() shows the same behavior. However, it does show the new default printer as such when selected. I'm afraid I don't know of a workaround that'll work for sure. If I were to hazard a suggestion as to what I'd do under the situation, I'd begin by looking at the behavior of the Common Dialogs ActiveX control's ShowPrinter() method. I have a feeling that what we're seeing is Fox holding the reference to the original default printer and not changing it (the selection) when the default changes. This is a guess, however, and going "outside the Fox" to the ActiveX control, might do the trick.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform