Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting partial text within a text box?

Status
Not open for further replies.

Jacque

Technical User
Nov 9, 2001
301
US
Hi All,
MS SQL Server 2005

I'm trying to format a field label within a textbox to display in bold while the remaining text shows as normal.

Example - Bold Text: normal text

I tried making the field label as it's own report item formatted in bold and then referencing the report item in the expression but that didn't work, I also tried using syntax to format the field label portion in bold but I couldn't get the syntax correct. I'm not sure what else to try but any suggestions would be greatly appreciated.

Thanks!
Jacque
 
AFAIK, the font property is set at control level rather than text item level. This being so, it owuld suggest that you cannot do this.

2 options spring to mind


1: There may be a .NET construction that can be used to render text as bold. If this is so (and I don;t know enough about .NET to confirm or not) then you could reference that to convert part of the text to bold - similar to the .tostring or convert(text, vbpropercase) type constructs / functions

2: Use 2 labels. One contains the bolded text, the other the report itme. Make the 1st label bold and the other not. Some jigging about with border properties should be able to give the illusion of 1 label....

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Hi Geoff,
I'll have to talk to one of my .NET developers because #1 sounds beyond my skillset (currently). I tried #2 and it's a pain to tweak.

Thanks for responding.
Jacque
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top