locked
ssrs formating text with html RRS feed

  • Question

  • I have a report textbox that I am filling from a rich text editor using a placeholder and having the text read as HTML.  I have text that is being formatted with html.  However the underlining is done with a span statement( STYLE="text-decoration; underline; ") instead of Using the underline tag. 

     How can I get the report to use the span statement for the underlining?
    Also what other html tags can be used in the reports.
    Tuesday, December 22, 2009 6:44 AM

Answers

  • The span and div attribute support is fairly light due to compatibility requirements across several rendering extensions.  Here's the documentation from our Wrox Professional series book:

    Tag

    Description

    <A>

    Anchor

     

    For example:

    <HRef=”www.somesite.com”>Click Here</A>

    <FONT>

    Sets font attributes for a group of text. Used with the attributes color, face, point size, size, and weight.

     

    For example:

    <FONT color=Blue face="Arial" size=6>Hello</FONT>

    <H1>, <H2>, <H3>, <H4>, …

    Headings

    <SPAN>

    Used to set text attributes for a range of text within a paragraph.

    <DIV>

    Used to set text attributes for a block of text.

    <P>

    Paragraph break

    <BR>

    Line break

    <LI>

    List new line

    <B>

    Bold

    <I>

    Italic

    <U>

    Underscore

    <S>

    Strikeout

    <OL>

    Ordered list

    <UL>

    Unordered list


    and theres more info in the MSDN library online here:

    http://msdn.microsoft.com/en-us/library/dd207048.aspx

    Paul Turley, MVP [Hitachi Consulting] SQLServerBIBlog.com
    Tuesday, December 22, 2009 8:42 AM

All replies

  • The span and div attribute support is fairly light due to compatibility requirements across several rendering extensions.  Here's the documentation from our Wrox Professional series book:

    Tag

    Description

    <A>

    Anchor

     

    For example:

    <HRef=”www.somesite.com”>Click Here</A>

    <FONT>

    Sets font attributes for a group of text. Used with the attributes color, face, point size, size, and weight.

     

    For example:

    <FONT color=Blue face="Arial" size=6>Hello</FONT>

    <H1>, <H2>, <H3>, <H4>, …

    Headings

    <SPAN>

    Used to set text attributes for a range of text within a paragraph.

    <DIV>

    Used to set text attributes for a block of text.

    <P>

    Paragraph break

    <BR>

    Line break

    <LI>

    List new line

    <B>

    Bold

    <I>

    Italic

    <U>

    Underscore

    <S>

    Strikeout

    <OL>

    Ordered list

    <UL>

    Unordered list


    and theres more info in the MSDN library online here:

    http://msdn.microsoft.com/en-us/library/dd207048.aspx

    Paul Turley, MVP [Hitachi Consulting] SQLServerBIBlog.com
    Tuesday, December 22, 2009 8:42 AM
  • When you say limited span support what about using  <span style="font-weight:bold; text-decoration:underline;"><span> for underlining text in a report using html for formatting teh text.  The text I am sending to the report is using the above rather than <u> for underlining.
    Thanks

    Tuesday, December 22, 2009 8:09 PM
  • You are trying to use CSS functionality inside the SPAN.  CSS is supported but not the underline (text-decoration) component.  Here is the list of what is supported:
    text-align, text-indent
    font-family, font-size
    color
    padding, padding-bottom, padding-top, padding-right, padding-left
    font-weight
    Tuesday, December 22, 2009 8:58 PM