Making part of the string bold

  • Hi all,

    I've been searching and trying, but how can i make a part of string in the textbox bold?

    e.g. i have the expression ="NAME: " & Fields!StaffName.Value in a textbox, i want it to be rendered as NAME: Some Name

    Is it possible?

    Thanks in advance

  • no; you can change the color of the text in the textbox, but not format PART of it's value, as far as i know.

    you could put bold text before the value, and leave the textbox as normal.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • You have a couple options for doing this in SSRS 2008, both involving Placeholders.

    Option 1:

    Type in "Name: " and set the TextBox FontWeight property to Bold.

    To the right of "Name: ", right-click and select Create Placeholder ...

    Set the Placeholder Properties > General > Value to your StaffName field.

    Change the Placeholder Properties > Font to un-Bolded.

    Option 2:

    Place the TextBox into edit-mode (blinking cursor).

    Right-click and select Create Placeholder ...

    For General > Value, type

    ="<B>Name: </B>" & Fields!StaffName.Value

    For General > Markup type, select HTML - Interpret HTML tags as styles

    Edit: The parser was messing up the less-than and greater-than symbols.

  • Hi.

    I do not think you can realize it in SRSS.

    However, I hava an idea. Maybe you can split this string into two cells, and make the NAME cell bold.

    RAQ Report: Web-based Excel-like Java reporting tool[/url]

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply