Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting printers
Message
 
To
02/10/1996 11:40:02
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00009134
Message ID:
00009174
Views:
43
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform