Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print to printer IP
Message
De
21/01/2013 14:57:39
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01563495
Message ID:
01563517
Vues:
67
>Hi,
>
>How do you print to printer if you know printer IP? Say I have network printer IP as '128.2.12.212' . Can I store it into a variable and the use SET PRINTER TO? Example:
>
>cPrinterIp = "128.2.12.212"
>SET PRINTER TO NAME (cPrinterIp)
>
>Will the above work?

No. The printer defined on the local computer may have that IP address, but you still need to access it via its defined name.

I just tested your code, on my system I get a VFP error "Error accessing printer spooler" ( error 1957 ).
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform