Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending to Multiple Printer
Message
De
21/11/2002 13:36:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00725358
Message ID:
00725368
Vues:
13
Kirk,

No need to change VFP default printer...
lcPrinter1 = "\\serverName\printer1"
lcPrinter2 = "\\serverName\printer2"

set printer to name (lcPrinter1)
report form report1 to print noconsole
set printer to name (lcPrinter2)
report form report1 to print noconsole
If you do want to know current VFP default printer, look at set("printer",3). Also, you need to make sure printer specific info is stripped from you reports, to make sure they actually go to the correct printer.


>Client request that when then send a report to print, a particular report in this case, that is get printed to two additional printers at the same time. So I was thinking I could store the printer string from the getprinters() function into a table. Then when they hit the print button, I could send it to each one. First...is this a sensable way to do it, and number two, can the "Report form" command send it to a specific printer, or do I have to issue a set printer to, report form, set printer to, report form and then set it back to what is was before. And how can I get what it was before?
>
>Thanks
>Kirk
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform