June 14, 2006 at 10:54 pm
Hi all,
I want to display a text box with two colours, I mean if there is a sentence like " This is Reporting services Group". In this let "reporting services" is the parameter value we got, i want to display it in red color.How to do dit?
Actually My initial was to have three text boxes like "This is " in Text box ,"Parameters!Group.value" in Second text box( i made this Font color red) and "Group" in Third txt box
but what is happening is when Parameters!Group.value is three letter word like "Sql" so much gap is coming between Group and Sql.
So I thought that better approach would be to have all things in the same text box but i am not able to get Different colour for Parameter which i want to highlight
Pls help me
Thank you
Raj Deep.A
June 15, 2006 at 6:39 pm
I'm not positive, but I'm pretty sure it's not possible within one text box.
One possible solution is to use formula's to calculate the 'left' properties of your second and third text boxes using the length of the second text box as a multiple to get them to align at run time.
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.
Jason L. SelburgJune 15, 2006 at 10:55 pm
I don't think Expressions are valid in Location Property as i tried once.But i am not sure How to express in VB? I am Glad if you can post a sample expression
It would Be very Helpful to me,
Regards
Raj Deep.A
June 15, 2006 at 10:55 pm
I don't think Expressions are valid in Location Property as i tried once.But i am not sure How to express in VB? I am Glad if you can post a sample expression
It would Be very Helpful to me,
Regards
Raj Deep.A
June 15, 2006 at 10:59 pm
I'll try to test this and get back to you asap.
______________________________________________________________________
Personal Motto: Why push the envelope when you can just open it?
If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.
Jason L. SelburgJune 16, 2006 at 9:51 am
A hack I have used to display different colors or text styles in the same texbox, when I know that the report will always be rendered in HTML format (enforced via use of custom report viewer with export capbility turned off, or as a subscription rendered only as HTML), is to embed HTML code directly in the textbox value expression like so:
="This is <FONT COLOR=RED>" & Parameters!Group.value & " </FONT> Group"
This won't work for you unless you can guarantee people won't be rendering and viewing the report in anything but HTML format because the HTML tags will appear as part of the text, which can end up being worse because you get junk in the text as well as losing the color.
Maddog
maddog
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply