Focal Point
[CLOSED] Highlighting some text in some colour at the footnote.

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

September 18, 2009, 07:43 AM
MKS
[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



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
September 18, 2009, 09:35 AM
MKS
Tom,

This didn't help. Web focus removed the content by itself.


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
September 18, 2009, 09:37 AM
Tom Flynn
Don't know what that means. You are on 5.2.5, so, that release has long left my memory. Instead of PDF, try it in HTML.

At any rate, that is the concept...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
September 18, 2009, 10:03 AM
GamP
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
FOOTING
"<FOOT1"
"<FOOT2"
"<FOOT3"
  ...
TYPE=FOOTING,
     LINE=2,
     COLOR='BLACK',
     BACKCOLOR='RED',
$

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


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
September 18, 2009, 11:27 AM
GamP
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.


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
September 18, 2009, 11:58 AM
N.Selph
I tried it on 7.6.4. It does not work there. So the magic release is either 7.6.5 or 7.6.6


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
September 18, 2009, 01:37 PM
Tom Flynn
That sounds correct. I was doing inline HTML to email addresses via RC prior, so, that seems right.

Gamp's suggestion should work with 5. Can't believe organizations haven't upgraded to 7 (2004, I think).


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
September 20, 2009, 05:44 PM
Waz
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.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs: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 ? Smiler


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!

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