[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 -
HTML - then you may be able to add CSS styling to your output.
PDF - then check out Warren's (Waz) excellent method of controlling the PDF output.
EXL2K - hmmm, not sure.
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.
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.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
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.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
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:
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