Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing printers programmatically
Message
 
À
09/11/2000 12:58:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00439583
Message ID:
00439861
Vues:
14
>Thanks Cathy, that did it...
>Now I have another problem... :-)(
>
>I want to print subsequent ( I hope the spelling is allright... ) reports form the two different printers. It works fine one at a time, but when I isuue the first report print, the prints following it also go to the same printer, disregarding my SET PRINTER command.
>
>Should I issue some kind of a waiting loop? Start the other printings only after the printer is ideal? If so how do I get if the printer is ideal?
>
>*!* Remainder-
>*!* 1. I'm actually printing to the same printer, but it is defined in two
>*!* ways because I want to use different paper treys.
>*!* 2. It is a network printer.
>
>Many thanks, (As always)
>Yours,
>Gadi Hutt

Gadi,

I can't test this because I don't have a printer with multiple trays, but in theory I think it should work. Bring up the report writer and select "File", "Page Setup" and then "Print Setup". On this screen you should see the "Paper Source" where you can select which tray is printed to. Set the appropriate tray for each of the reports you need to print.

FYI, you will have to hack the .FRX file again and remove the TAG and TAG2 info from the first record because as soon as you save the report again, it will rewrite those fields.

You could actually just hack the .FRX file to change the paper trays if you knew what the codes are. In the first record of the .FRX file, look in the "expr" field. One of the lines will say "DEFAULTSOURCE=#", where "#" is the code for the appropriate tray.

Hope this helps,
Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform