Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting printers
Message
 
À
02/10/1996 11:40:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00009134
Message ID:
00009174
Vues:
41
>WIN95 and VFP
>My application requires 4 different report forms to be run for a complete report output. Also the user may request an unknow number of jobs to be printed at the same time. Using the SET PRINTER TO command doesn't seem to be followed by all REPORT FORM commands. I.E. if I issue SET PRINTER TO GETPRINTER() at the start of the loop, the 4 different REPORT FORM commands will print to different printers. Local and network. Does anyone have any ideas on how to set the printer once rather than using the REPORT FORM ? TO PRINTER PROMPT. This would not be usable for the end user.

The printer definition/driver info is store in the first record of the FRX file in the following fields: Expr, Tag, Tag2.
How about:
REPORT FORM rpt1 TO PRINTER PROMPT
USE rpt1.frx
USE rpt2.frx IN 0
REPLACE rpt2.Expr WITH rpt1.Expr, rpt2.tag WITH rpt1.tag, rpt2.tag2 WITH rpt1.tag2
and so on...
Then close the frx files and print the subsequent reports with no PROMPT.

HTH
Sorin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform