Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to name or IP?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01371249
Message ID:
01371270
Vues:
15
>>>>Hi,
>>>>
>>>>I need to add a feature to my application that would print certain documents to different network printers (based on some input criteria). The user can knows each printer IP address or printer name (of course). Is it possible to print from VFP directly to the IP (without knowing the printer name)? I feel that if we use IP it is less likely that the user will make a mistake in the printer configuration file (where printer names/IP will be stored).
>>>>
>>>>Thank you in advance for your suggestions.
>>>
>>>I think it should work using IP address.
>>
>>Ok. I will search here (UT) for a message on how to. Thanks.
>
>I found this thread Re: Print to IP through Novell Thread #1193397 Message #1193580, not sure if exactly relevant.

Thank you.

I will try the following syntax:
cPrnIp  = "xx.xx.xx.xx"
SET printer to (cPrnIp)
REPORT FORM MyReport.frx NOCONSOLE NODIALOG to PRINTER
I won't be able to try it now as I don't have a printer here (I am at home). But if someone has tried printing to an IP and thinks that the above syntax is wrong, please let me know.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform