Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET PRINTER TO NAME doesn't seem to work
Message
 
À
13/04/2000 20:22:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00357635
Message ID:
00359613
Vues:
9
You said NT network, but did not specify what the workstation OS was. At least in VFP5, NT does not respect the set printer to name. NT will only recognize UNC printer names (set printer to \\server\printer).

My VFP app was running on a mix of Win 95 and NT Workstation machines and when I wanted to programmatically select the printer (like sending invoices to the invoice printer) I had to check the OS at program start and use code like this:

if mOpSys = 'NT'
set printer to \\atmex\invoice
else
set printer to name 'invoice'
endif

repo form invoice to print noconsole
set printer to default
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform