Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use local printer with \\
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01051415
Message ID:
01051418
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
>I would like to simulated on my computer printing to a network printer defined with name like \\myserver\printername (of course, using the syntax: set printer to name (pcPrinterName)). My local printer name is "HP DeskJet 712C".
>
>How can I make it work with something like the \\mypc\HP DeskJet 712c? What would be [\\mypc] on my pc? Would it be PC name in the properties?
>
>Thank you in advance for any help.

Never tryed but I think it shoud be:
lcCompName = ALLTRIM(LEFT(SYS(0),AT([#],SYS(0))-1))
lcPrinterName = [\\]+lcCompName+[\HP DeskJet 712c]
SET PRINTER TO NAME (lcPrinterName)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform