Four Js Development Tools Forum

Discussions by product => Reporting tools (GRW, GRE) => Topic started by: sheng lihao on April 13, 2011, 07:08:28 AM

Title: How to use expression changing the font property of certain words within string
Post by: sheng lihao on April 13, 2011, 07:08:28 AM
I need to make certain words within a string to be bold and underlined. How can I do it without separating those words from other string and make them in the same word box/word wrap box.

Can I set the font property of a string dynamically using expression? and how?
Title: Re: How to use expression changing the font property of certain words within string
Post by: Alex GELLER on April 13, 2011, 09:52:11 AM
Did you try using the HTML box as it provides a good way to produce attributed text?  The style properties on WORDBOX, WORDWRAPBOX apply to the entire content so that that is not possible to display mixed content with a single instance of these objects. You would have to break the text into chunks and set the properties on the individual chunks.
Title: Re: How to use expression changing the font property of certain words within string
Post by: sheng lihao on April 13, 2011, 11:27:46 PM
Seems like I don't have a HTML Box in my report writter. My version is 2.21.06-85371
Title: Re: How to use expression changing the font property of certain words within string
Post by: Reuben Barclay on April 13, 2011, 11:32:50 PM
The HTML Box was introduced into GRW in 2.30 https://4js.com/online_documentation/fjs-gst-manual-html/configurations/User/NewFeatures.html#Report_Writer
Title: Re: How to use expression changing the font property of certain words within string
Post by: sheng lihao on April 14, 2011, 12:22:07 AM
Thanks!