Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the Windows Default printer
Message
De
26/04/2005 15:33:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01008580
Message ID:
01008596
Vues:
22
>Is there any way to set the Default Windows Printer?
>I can get a list of them from:
>aa = APRINTERS(fff)
>...but do not know how to set one of them up as the default.
>
Hi Ruddy,

Adding this to the others messages you can change only for your application only doing something as:
nwqt_prns    = APRINTERS(awprns)
nwmyprn        = 0
for ipp = 1 to nwqt_prns
    if  "MY SPECIFIC" $ upper(awprns[ipp,1])
        nwmyprn = ipp
        exit
    endif
endfor
if  nwmyprn > 0
    SET PRINTER TO NAME awprns[ipp,1]
endif
*** --> printer jobs here
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform