Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: How to use expression changing the font property of certain words within string  (Read 11538 times)
sheng l.
Posts: 10


« 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?
Alex G.
Four Js
Posts: 148


« Reply #1 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.
sheng l.
Posts: 10


« Reply #2 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
Reuben B.
Four Js
Posts: 1049


« Reply #3 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

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
sheng l.
Posts: 10


« Reply #4 on: April 14, 2011, 12:22:07 am »

Thanks!
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines