SSRS BUG? When a FontStyle expression is used in a report, the Browser Text Size setting overrides that field font size and inline HTML style is blank
I have created a report that has the same font size for all the sections in the report. Some sections' fields use a FontStyle expression that changes the FontStyle between Normal and Italics conditionally. I run the report through the reportserver interface and the report looks fine. I run the report through the ReportViewer control and the the fields which use the FontStyle formula are overridden by the Browser's Page Text Size. Also, when I look at the inline HTML Style that's generated, the fields with the formula don't have a style, they are blank, while the fields with without a FontStyle expression have an inline HTML Style generated. And this is probably why the browser text size setting can override. This seems like a ReportViewer HTML render bug... Or is there a way around it??
September 13th, 2010 9:34pm

Hi, What's the version of your envrionment? I tried this in SSRS 2008 + sp1 and Visual Studio 2008, everything works fine. thanks, Jerry
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2010 6:31am

Environment is RDL designed in vs2008, reportserver is R2. Here are my steps again: 1: Using vs2008 (latest version): Report with Tablix with a set of fields, just some which have a conditionally formatted FontStyle (expression) property where it's either Normal style or Italics based on some trigger. 2: Set font size to 10pt., can be any font name. 2: Deploy report to SSRS R2 server. 3: Access report through a ReportViewer control (vs2008 version) 4: Using IE 8 select the Page menu, then Text Size and change to Medium or Large. 5: Notice that the conditionally formatted fields change and the ones that are not conditionally formatted do not change and when I check the HTML source I see that the conditionally formatted fields do not have an inline style definition, it is blank.--ACG
September 15th, 2010 3:50pm

Hi I am also facing a similar kind of issue. I have three reports created and deployed to report server. Now I am viewing all these reports through custom webparts designed within a dashboard. What is happening is for some cells of my first and second report created with table have a different font style, border style than what I actually set. When I checked html source, I found that the id that got created for these cells in first report is used again by the third report. And so the style which I set for third report is getting applied on first report. How do I fix this? Fayaz
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2010 5:17pm

Check your style settings in the report, if they are conditional (use an iif expression to set the style) then that is probably the problem.--ACG
September 15th, 2010 6:03pm

I could resolve it. Though it is painful. I have to create custom style sheet and add it as reference to project. Then apply it to each cell. It is really painful. For more details pls refer http://www.sqlservercentral.com/articles/Reporting+Services+(SSRS)/65811/ with regards Fayaz
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2010 7:54pm

I found that the easiest way to fix this is to change all of the pieces of the font (size, family, etc.) to use conditional logic. I changed these to iif(1=1, "Arial", "Arial), etc. and this fixed the problem. Courtney
November 30th, 2010 9:32am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics