Friday, March 23, 2012

How to change fontweight for different parts of text in textbox

I'm trying to change the fontweight for different parts of text in a textbox, but it seems that the fontweight applies only to the textbox as a whole. Below is what I want to do, how can I get this to work?

I have a textbox inside a rectangle that is the same width of the rectangle, the text align is centered. The expression of the textbox is:

="Date from: " & Parameters!DateFrom.Value & " Date to: " & Parameters!DateTo.Value

I would like "Date from:" and "Date to:" to be Normal weight and "Parameters!DateFrom.Value" and "Parameters!DateTo.Value" to be Bold weight.

This whole line needs to be centered in the rectangle, I thought about breaking the line up into multiple textboxes using text alignments right and left, but that will not work for lines where I don't know how long the length of the value will be. Any help would be appreciated...

Thanks!

Hi,

I doubt if there is any workaround available for this except for breaking the line into multiple textboxes . This is what I had done to format parts of text differently.

Regards,

Ashish

No comments:

Post a Comment