Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing report to non-default printer
Message
De
21/06/2001 15:07:05
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Printing report to non-default printer
Divers
Thread ID:
00522107
Message ID:
00522107
Vues:
42
I am trying to allow my program to read the name of the desired report printer from a CONFIG.FPW file and print all its reports to that printer. I can get the printer name from the config file just fine but I can't seem to print to anything other than the current default printer. I know about REPORT FORM ... TO PRINTER PROMPT but there won't be a user there to select a printer each time. (It is kind of like a report server. Data files show up and reports get printed from that data automatically.) I need to be able to do this using code.

I also have read about blanking out the TAG and TAG2 fields in the first record of the FRX file but that didn't make much difference. Output still went to the default printer. I tried using SET PRINTER TO NAME (printername) but that seems to just work with the ? command.

I know it's possible to programmatically change the default printer and thereby fake out the report command but I have other apps running simultaneously that must print to the default printer. I don't want to change the default printer out from under the other program.

Is there any hope of being able to print to a non-default printer without changing the default printer?
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform