Skip to main content
Known Participant
April 26, 2006
Question

bold font

  • April 26, 2006
  • 3 replies
  • 1712 views
Hi i have a fied in report builder with

query.FacilityName & " " & query.Address

what i need is the first part (query.FacilityName) to be in bold

how would i do this?
This topic has been closed for replies.

3 replies

Participant
May 25, 2006
I don´t find the propertie Set "HTML Text Formatting" ?¿?¿ where is it?
Inspiring
May 18, 2006
"HTML Text Formatting" in CFREPORT is a mystery to me. The way it is described by Braden20 does not work, at least for me. I had to embed the <b></b> directly in the query as '<b>'+Blah+'</b.' as Blah for bolding to work.

Yet when I try to use Bold or Italic HTML embedded in a string passed as a parameter to the report I get the actual html <b>hhdhjkakjadhakj</b> in the report.

What gives? Is this a bug that needs to be fixed? Is there a mystery setting or some special way these things are supposed to be handled. There is no documentation on this property in the report builder help or anywhere else I have looked.

This ability to bold, italicize specific words or phrases dispersed inside paragraph type fields is a critical element for several projects. Any help is appreciated. Thanks
Participant
May 18, 2006
Did you set the HTML formatting property to True? I forgot to mention the bold tag needs to be in quotes. Here is an example I just tried that worked successfully for me. Make sure you field has bold turned off also else the second query field will still look bolded.

"<b>" & query.division & "</b> " & query.product_number
Inspiring
May 18, 2006
Yes I do have it set to true. The quotes around the HTML tags is what I was missing when I said yours wasn't working. Thanks for the clarification.

However I have a string of quite a bit of text that is dynamically created outside of the report and then passed into the report as a CFREPORTPARAM. In this param may be one or more words or phrases somewhere in the string that have HTML formatting wrapped around them. It is these that have me perplexed. The Report Writer sees them because they show up as just part of the text. Example: <CFREPORTPARAM NAME="SampleText" VALUE = "Yesterday is over. <b>Today is the day.</b> Tomorrow is yet to come." In that string I wanted "Today is the day." to be bold. Instead the string HTML and all shows up as entered. SampleText is defined as a String Input Parameter in the report. This is quickly becoming a major problem for me.

It would be nice if this feature were documented somewhere.
Inspiring
April 27, 2006
When you join multiple fields like that in any report writer the system will see them as a single object. The best way is to place both as individual fields on the page, have the first field align right and the second align left. Make the first bold.

Participant
May 12, 2006
You can set the field to use basic HTML. Click on your field and look at the properties menu. Set "HTML Text Formatting" to True. Than in expression builder wrap the first part in a bold tag. <b>query.facilityName</b> & " " & query.address.