[CLOSED] Highlighting some text in some colour at the footnote.
I need to highlight some text at footnote with some colour (I need to highlight it by changing the background colour of that particular text and not by by changing the font colour )but can't find any such option available(may be due to the version I am using). Is there any way to do it by coding?This message has been edited. Last edited by: Kerry,
WebFocus 5.2.5 HP-UX(UNIX) EXCEL, HTML, PDF and OLAP
September 18, 2009, 08:38 AM
Tom Flynn
DEFINE FILE CAR
FOOT1/A18 = 'This is the start ';
FOOT2/A16 = 'This is colored ';
FOOT3/A16 = 'This is the end.';
END
TABLE FILE CAR
PRINT
SEATS
DEALER_COST
RETAIL_COST
SALES
BY CAR
BY MODEL
ON CAR SUBTOTAL AS '*TOTAL'
HEADING
""
FOOTING
"<FOOT1<FOOT2<FOOT3"
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
GRID=OFF,
ORIENTATION=PORTRAIT,
-* PAGECOLOR=RGB(240 240 250),
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
RIGHTGAP=0.125000,
$
TYPE=FOOTING,
COLOR='BLACK',
BACKCOLOR='WHITE',
$
TYPE=FOOTING,
ITEM=2,
COLOR='BLACK',
BACKCOLOR='RED',
$
ENDSTYLE
END
-EXIT
I even think that 525 is not supported anymore. What I do know is that if you go to pdf then the footing line will have just that one color. You can't color parts of footer (or header) lines. So in your example, if you do
then the second line will be colored red. If this is not what you nedd, then please let us know what you do need.
Hope this helps....
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
September 18, 2009, 10:21 AM
Tom Flynn
quote:
You can't color parts of footer (or header) lines
Gerard,
Did you try the code, because, in 7.6.9, it works fine in PDF? I've been doing that since 7.6.X, especially for text letters being mailed out from university's...FYI
No, I ran this on a 765 release. I did know that there was a NFR for being able to color parts of a foot or head, but never even thought of it already being solved in 769. I'll try in 769 later and see if I also get the parts colored. But since the person who asked is still on the old museum piece of 525, it will never work there like it does in 769.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
September 18, 2009, 11:35 AM
GinnyJakes
I ran Tom's code on 7.6.5 and it worked just fine. I have a 7.6.6 reporting server.
GamP's suggestion does work on 5.2.4, but the background is changed for the whole line, not just the text.
I don't ever throw away old versions, always good for something...
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!
September 22, 2009, 02:15 AM
MKS
Hi,
Yes, line colouring is working.
But actually I was looking to colour some words in the middle of the line, to highlight it. With this discussion, it seams it will not work for 525.
hmmm ... bad luck!!!!!
WebFocus 5.2.5 HP-UX(UNIX) EXCEL, HTML, PDF and OLAP
September 22, 2009, 02:26 AM
Waz
Time to Upgrade ?
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!
September 22, 2009, 11:40 AM
Darin Lee
You CAN color words in the middle of a line, but only in HTML format. If you're wanting PDF output, you'll only get what you need by upgrading to a recent version.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat