Focal Point
[CLOSED] Strikethrough formating in the report header

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3951026192

July 15, 2008, 10:04 AM
kfr104
[CLOSED] Strikethrough formating in the report header
Good Day;

I am doing some conditional formating in the repot header of a report in the GUI. I am trying to fomat text with a strikethrough format. I have searched and the only information I have found is to do it in the HTML layout painter and that is for the lunch page. I want the format to occur in the report itself. Any suggestions?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 7.6.4
SQL
HTML and Excel
July 15, 2008, 10:35 AM
Tony A
kfr,

There is not an option for using strike through within Report Painter, but if there was it would be accessible from the "style" tab within "Options".

If your output is -
T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 15, 2008, 10:52 AM
kfr104
Thank you for the info. Is there a way then to make text not appear with the condition. I orrigianly made the text white, but it still printed when it was sent to the printer...


Thanks


WebFocus 7.6.4
SQL
HTML and Excel
July 15, 2008, 11:03 AM
GinnyJakes
There is a post on conditional text in the Forum as I remember posting an answer. You can use a DEFINE with an IF condition to set the contents of a field which you then put in the header. If your condition is true, the text will appear; if false, it will not.

DEFINE FILE filename
HDRLINE/A50=IF CONDITION EQ 'TRUE' THEN 'THIS IS MY HEADING TEXT' ELSE ' ';
END
TABLE FILE filename
HEADING
"<HDRLINE"
...rest of program
END  


Remember the above example is pseudo-code. You must customize it to your needs.

And please do some searching before posting.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
July 15, 2008, 01:09 PM
kfr104
Thanks...


WebFocus 7.6.4
SQL
HTML and Excel
July 16, 2008, 05:55 PM
Waz
As Tony says, HTML do it with CSS styling. With Excel, you should be able to to do the same with some of the techniques in this forum, requires the use of CSS.

For PDF, you could try this
TABLE FILE CAR
HEADING
"TEXT<+0>————"
PRINT COUNTRY
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
 TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1, POSITION=1,$
 TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=2, POSITION=1,$
ENDSTYLE
END

its not elegant, but works


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

July 17, 2008, 02:47 AM
Tony A
Waz,

Nice use of style! I guess we'd have to be careful on the use of overstrike character to get a clear output.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 17, 2008, 05:26 PM
Waz
Tony, you are so right.

But, the nice thing with this technique is you can change the colour of the overstrike, make it bold, etc.

The only issue is proportional fonts, matching the number of characters may make the overstrike longer than the text.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

December 19, 2013, 09:45 AM
SWES
If your desired output is HTML, you can apply it in your DEFINE, like:

 NEWFIELD/A50 = '<strike>'||FIELDNAME||'</strike>'; 


Or with HTML5:

 [CODE] NEWFIELD/A50 = '<del>'||FIELDNAME||'</del>'; 
[/CODE]

Hopefully this solves your issue after five years...

Bye


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
December 19, 2013, 12:32 PM
susannah
i use this
.myline {text-decoration:line}

in my -HTMLFORM section
and put
TYPE=HEADING,ITEM=2,CLASS=myline, $
or somesuch in my fex.

i also put different class features, for fun, such as:
<STYLE>
a,a:visited {color:#456496 ; text-decoration:none}
a:hover, a:active{color:#BF0D23 ;  text-decoration:underline}
.domino {text-align:center; font-family:ARIAL; font-size:9pt;font-variant:small-caps; color:#000000; background-color:#F0F0F0;}

</style>

domino is my personal fav, it puts the text in smallcaps which is quite elegant delicious for titles.

This message has been edited. Last edited by: susannah,




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID