How do you change the Text Legend to BOLD just for the total in the SRSS report?

  • In my Series Group, I have the Label with the following expression:

    =(Fields!School.Value) & (COUNT(Fields!School.Value, "Chart3_SeriesGroup"))

     want to make the COUNT part appear in BOLD, any ideas how I can do this?

     have tried using format (count...…., "BOLD") and all sorts like "<b>" but nothing works?

    it is for the legend, I want to display the text (school) as regular font, then the Count in BOLD

    any way to do this?
    Thanks

  • Hi,

    I've had the same issue and used the following method to get the formatting I needed;

    HTML Formatting SSRS

  • rodjkidd - Monday, November 12, 2018 8:29 AM

    Hi,

    I've had the same issue and used the following method to get the formatting I needed;

    HTML Formatting SSRS

    Already had a look at that before posting. 

    i am formatting a LEGEND, not a textbox, so there are no placeholder properties.

    The legend displays: School A 34, School B 22 for example
    I need the display to be School A 34, School B 22

  • Ah, I hadn't realised the legend was different to any other text box, in that respect.
    None of the reports here have any legends on them, otherwise I'd have a play with one to see what I can do.

    Rodders...

  • Anyone else got any ideas on this?

    Surely i ain''t the only one?

  • rkelly58 - Monday, November 12, 2018 8:17 AM

    In my Series Group, I have the Label with the following expression:

    =(Fields!School.Value) & (COUNT(Fields!School.Value, "Chart3_SeriesGroup"))

     want to make the COUNT part appear in BOLD, any ideas how I can do this?

     have tried using format (count...…., "BOLD") and all sorts like "<b>" but nothing works?

    it is for the legend, I want to display the text (school) as regular font, then the Count in BOLD

    any way to do this?
    Thanks

    What you could do is spilt your expression into a table with two columns
    The first column could have the value =(Fields!School.Value) and the second column could have the value =(COUNT(Fields!School.Value, "Chart3_SeriesGroup")).  Then, all you would have to do is set the font weight of the second column to heavy.

  • One work around I can think is FontWeight properties of legeng and can do expression.
    eg.

    =IIF(Right(Fields!Graph_Year.Value,2)=18,"Bold","Normal")

    You can change Right function according to your formula, I have used current year for testing. May be take last three digits and check it they are number or do they exists eg. IsNothg () !!!!

    hope this makes sense.

  • rkelly58 - Tuesday, November 13, 2018 2:44 AM

    Anyone else got any ideas on this?

    Surely i ain''t the only one?

    One work around I can think is FontWeight properties of legeng and can do expression.
    eg.

    =IIF(Right(Fields!Graph_Year.Value,2)=18,"Bold","Normal")

    You can change Right function according to your formula, I have used current year for testing. May be take last three digits and check it they are number or do they exists eg. IsNothg () !!!!

    hope this makes sense.

Viewing 8 posts - 1 through 7 (of 7 total)

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