Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove bad printinfo from expr field from report
Message
De
28/03/1998 18:31:51
 
 
À
27/03/1998 16:25:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00087827
Message ID:
00087946
Vues:
35
>>expr field in first record of report for HPLJ 4L printer looks like:
>>
>>DRIVER=WINSPOOL
>>DEVICE=HP LaserJet 4L
>>OUTPUT=\\Marek\hp
>>ORIENTATION=0
>>PAPERSIZE=9
>>COPIES=1
>>DEFAULTSOURCE=1
>>PRINTQUALITY=300
>>YRESOLUTION=300
>>TTOPTION=2
>>
>>To print report properly, some lines of this info (DEFAULTSOURCE=)
>>must be removed,
>>otherwise when printing to some other printer, e.q. HPLJ 4P printer will try to select always incorrect (upper) tray!
>>But some lines (ORIENTATION=) must be remain untouched because they are set by report design!!
>>
>Tag,tag2 fields should be blanked completely. In Expr field delete driver/printer specific information (IMO, first three lines). I think it's better to do it manually.

I have a program with 150 frx reports designed in A4 format
in Porttrait and if some report will not fit, in Landscape
orientation. This is the only vital property of reports which must
be preserved.

This program will be distributed to many users and i dont
know which printer they have. Also, sometimes they modify reports
(this causes printinfo to appear again) and sometimes they change printers,
different workstations using same report may have different printers.
In some cases i got phone calls telling that after changing printer report
stops working since it tries get paper from incorrect source.

Thus the only way to handle this is to clear .frx file
always before printing programmatically.

Firs three lines seems not to cause printer errors since
foxpro or windows seem to ignore them when there unmatched information.

The critical field which causes report not to be printer is
in line 7, DEFAULTSOURCE=

Is it sufficient to delete always line number 7 (without checking,
deleting only by number) from expr field
and blank tag and tag2 ?
I want to print always to default printer set from control panel.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform