Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One page on one printer, rest of pages on the other prin
Message
De
18/07/2000 04:18:39
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00393477
Message ID:
00393677
Vues:
11
>to: ALL:
>
>We have a problem with a Foxpro app of ours that is still compiled under Foxpro VFP 5 with the latest service pack.
>
>After the network guy finished screwing with the network and printer configurations, now Foxpro prints one page on the selected printer and the rest of the pages on the default windows printer.
>
>We are having the user select the printer when the program is first started. Then it is printed using standard report writer.
>
>Clues anyone?
>
>Thanks
>Bruce Strom

Are these actually two separate .FRX's, i.e. One for the first page and another for the subsequent pages?

Foxpro does store some destination info in the .frx file itself. It's usually a good idea to get rid of this info before distributing an application.

You need to open the report definition as a foxpro table, then make some changes to the first record. Usual disclaimer here, make a back-up of the report before you start messing with the frx!

i.e.

USE repname.frx
GO TOP
REPLACE tag WITH "", tag2 WITH ""
BROWSE

Now, open the memo field called Expr, and delete all lines that deal with physical printer stuff, e.g. DRIVER=, DEVICE= and OUTPUT=

Finally, close the table.

Some people write a small program to do this, and run it for all reports before building their application.

This printer specific stuff is added back in every time you open your report in the report writer.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform