Underline only one part of a text field RRS feed

  • Question

  • User-1210839387 posted

    using .net 2005 report project.

    I have constant text in a textbox on a Sql Server report and I would to underline only one part of the text (not all of it).  when I Select the 2 words that I want to underline and then click the underline icon it underlines all text in the textbox but I only want to underline 2 words.


    I only want to underline this


    but when I do that in the textbox of the report it underlines all the text in the textbox

    how to do this?



    Tuesday, April 3, 2012 2:56 PM

All replies

  • User-1681926258 posted

    take a span for requred text only :


    I only want to <span style="text-decoration:underline">underline this</span>


    Tuesday, April 3, 2012 3:20 PM
  • User-1210839387 posted

    thanks for the feedback.

    am i supposed to see that change when I preview the report?

    when I run the report in preview mode I see the "<span.....</span" text, not the desired effect

    Tuesday, April 3, 2012 4:29 PM
  • User2105670541 posted

    just select the text how much you want to underline inside textbox, do not select Textbox completely. just press CTRL+U.

    i think it will work

    Tuesday, April 3, 2012 11:53 PM
  • User-1210839387 posted

    I tried CTRL + U and that does not work.

    Wednesday, April 4, 2012 8:42 AM
  • User-1210839387 posted

    the best workaround that I can figure out is to put a Line underneath the text.  the problem that I'm having after that however is when I put a line in the textbox all sections before the line do not appear when I run the report which is very confusing to me

    Wednesday, April 4, 2012 8:53 AM
  • User-1210839387 posted

    you know what, let me take back what I said about putting a line object underneath, that will not really work in regards to display.  I think that we are going to drop this idea.

    I've read online about putting the underlined text in a separate textbox, so yes this means putting 2 or 3 textboxes where normally there was one, very ugly solutions but the only thing that I can think of for 2005.

    Wednesday, April 4, 2012 11:20 AM
  • User2105670541 posted

    can you please have a look at below link, i've created the same thing you want, you can make a portion in a textbox as BOLD Italic or underline, you need not to make it for complete textbox, have a look at report project below:


    Wednesday, April 4, 2012 12:14 PM
  • User-1210839387 posted

    thanks for the project, I will try to look at it next week at work when I have the time to do so.

    Friday, April 6, 2012 4:15 PM
  • User-1210839387 posted

    is this a 2005 report?

    Friday, April 6, 2012 4:16 PM
  • User2105670541 posted

    dear i have SSRS 2008, but if you have issues opening the solution, just create a project in SSRS 2005 and add the rdl file of my solution to your project to run.

    Monday, April 9, 2012 8:11 AM