Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing multiple reports as a batch
Message
De
17/09/1999 15:29:05
Bruno Di Lalla
Bdl Computer Consulting
Greely, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00266102
Message ID:
00266144
Vues:
23
>I am running a series of reports that I want to print in the same print job.
>Any suggestions?

Hello John,

Here's how I've done it in the past...

-run first report with "TO FILE x" parameter, where x is a file name
-run second report with "TO FILE y" parameter, where y is a file name
-concatenate the two files by doing the following: RUN TYPE y >> x
(this process will run in a command window (DOS window if you like, but I hate
referring to DOS as it is moving towards extinction)
-repeat step 2 and 3 for all other reports.
-once all reports have been concatenated, send the file to the printer:
RUN COPY x TO LPT1 or
RUN TYPE x >> LPT1:

For this to work without user intervention, ensure that your command prompt windows are configured, by default, to close automatically upon program termination. Otherwise, you will have inactive command prompt windows all over the place.

If you need to print double sided, modify your printer defaults.

Let me know if this works for you.
Bruno Di Lalla
Consultant
BDL Computer Consulting
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform