Showing posts with label highlight. Show all posts
Showing posts with label highlight. Show all posts

Monday, March 26, 2012

Formatting text in using Report Designer

Hello,

I am designing a report which has some static and dynamic data. The static content is a huge text and I want to highlight certain portions of the text with bold font and in some places with different color.

I am using textbox report item to draft the static text. But unfortunately, I am not able to change the font of a portion of the text. If I change the font, by highlighing some text, it changes for all the text in the text box.

Can you please help to solve this problem?

-Srinivas

The bits of text you want to change will have to be treated as separate pieces of data and be in a separate container (ie textbox). Do you know what they are ahead of time? You could try having a bunch of textboxes lined up end to end, and set CanGrow to true - but it would still be difficult to get this looking good.

sluggy

|||Earlier, I have tried having series of textbox's as in the similar way as you have suggested. And that works.

But I want to do that in one control so that it will be easy to format and gives the flexibility to work on complete text (instead of bits of text) and also align the text as needed.

Is there a way?

Wednesday, March 7, 2012

Format question of text concatenation

I have a text like this '*'& Field!Item.Value. I would like to highlight the
asterisk '*' as red color and bold in order to make the end user notice it
easier.
How can I do it? Thanks for your help.you could have 2 textboxes adjacent to each other. the first one would show
the '*' and the second one could show the Field!item.value. You could then
set the first text color to red.|||Because the asterisk which is showing off are based on the value of Item
field. I can use two adjacent boxes to do it. I wonder if there is no way to
do it in one textbox?
Thanks,
"george" wrote:
> you could have 2 textboxes adjacent to each other. the first one would show
> the '*' and the second one could show the Field!item.value. You could then
> set the first text color to red.|||One way to do any special formatting of items in a textbox is with some
custom code. Maybe there is an easier way to do this, but if you just
created a function that showed or did not show the asterisk based on
the field value, you could then reference it in the textbox.|||A single textbox cannot display text in multiple colors. We will enable this
in a future version of Reporting Services via support for rich text.
--
Rajeev Karunakaran [MSFT]
Microsoft SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Sally" <Sally@.discussions.microsoft.com> wrote in message
news:99831223-41CE-4734-8E90-519A6FDCDDEC@.microsoft.com...
> Because the asterisk which is showing off are based on the value of Item
> field. I can use two adjacent boxes to do it. I wonder if there is no way
> to
> do it in one textbox?
> Thanks,
> "george" wrote:
>> you could have 2 textboxes adjacent to each other. the first one would
>> show
>> the '*' and the second one could show the Field!item.value. You could
>> then
>> set the first text color to red.