June 14, 2006, 05:35 PM
Jim_at_LMThanks Tony - we'll try it here too.
June 14, 2006, 06:50 PM
MikelFor HTML display/print only, in order to hide columns, I prefer use CSS styles.
In the following example:
- Browser don't show SALES when COUNTRY EQ ITALY.
(class
nodisplay with visibility css property set to "hidden")
- DCOST & RCOST columns are not displayed on printer.
(class
noprint with display css property set to "none" when media is printer)
TABLE FILE CAR
SUM SALES DCOST RCOST
BY COUNTRY
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=SALES, CLASS=nodisplay, WHEN=COUNTRY EQ 'ITALY', $
TYPE=TITLE, COLUMN=DCOST, CLASS=noprint, $
TYPE=TITLE, COLUMN=RCOST, CLASS=noprint, $
TYPE=DATA, COLUMN=DCOST, CLASS=noprint, $
TYPE=DATA, COLUMN=RCOST, CLASS=noprint, $
END
-RUN
-HTMLFORM BEGIN
<style type="text/css">
.nodisplay {visibility: hidden;}
@media print {
.noprint {display: none}
}
}
</style>
!IBI.FIL.HOLD;
-HTMLFORM END
Regards,
Mikel
June 15, 2006, 10:40 AM
Pam KrattI love the suggestion of:
It worked great. Thanks.
June 21, 2006, 03:46 PM
susannahPam, each users' browser settings determine whether 'print background colors and images' get displayed. if that switch is off, then you print black and white.
if that switch is on, then you get the nice invisible white font. But it is user-desktop-specific. Tools/Internet Options/Advanced..and scroll down;
June 21, 2006, 05:25 PM
TexasStingrayTell me why cannot you use NOPRINT?
Scott
June 21, 2006, 10:26 PM
Pam KrattWe can't do noprint because we need the field to print normally. It's only when a certain row is printed that they don't want to see the amounts in one column. Noprint would cause the column to never print. They want to see 9 out of 10 rows and some accounts may not even have that 1 row of data that they don't want. Of course, they want to see some of the columns for that 1 row, so you can't eliminate the data completely.
The solution of class=nodisplay suggested by Mikel worked great.
webfocus 8.105M; os: windows; pdf, html, exl2k, csv
June 22, 2006, 08:48 AM
susannahapplause, Mikel.
what a really neat trick.
| In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID |
June 22, 2006, 10:04 AM
TexasStingrayIf you can determine what row it should and should not print on could you not set the computed field to missing and before the report runs set SET NODATA = ''.