Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set a printer
Message
De
19/08/2003 10:42:40
 
 
À
19/08/2003 10:06:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00821396
Message ID:
00821416
Vues:
22
Hello Daniel;

>How can I set one printer of Windows Printers List as a Default printer by Fox code ?

Here is a sample on how can I make a choice of a printer named "MY SPECIAL PRINTER"..
nwtot_prns    = APRINTERS(awprinters)
nwind         = 0
for i = 1 to nwtot_prns
    if  "MY SPECIAL PRINTER"$upper(awprinters[i,1])
        nwind = i
        exit
    endif
endfor
if  nwind > 0
    SET PRINTER TO NAME awprinters[nwind,1]
else
    wait window "Hey.. Why my special printer isn't installed ?" nowait
    return
endif
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform