Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing using the second printer, not the default print
Message
 
À
06/06/2003 04:04:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00797067
Message ID:
00797083
Vues:
14
Use getprinter()
Aashish
>Hi,
>I have two printers, "Printer Local" and "Printer Network". the default printer is the "Printer Local". I don't want to set the "Printer Network" as the default printer everytime I'm using my program that prints an invoice.
>Here's the scenario, I use the "Printer Local" to print MS Word documents, so its the default printer.
>I use the "Printer Network" to print invoices/OR. So what I want is to redirect the printer input to "Printer Network" without setting it as the default printer.
>Here is my sample code:
>SET TALK OFF
>SET SAFETY OFF
>SET CONSOLE OFF
>tempfile = SYS(2015) + ".txt"
>SET DEVICE TO FILE &tempfile
>@PROW(), 1 SAY "sample text for my network printer"
>
>* these next two lines were the original code to print
>* to the default printer "Printer Local"
>* you can replace these with the appropriate code :)
>SET DEVICE TO PRINTER
>TYPE &tempfile TO PRINTER
>
>Thanks!
>
>Erik
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform