Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 758463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:28:56+00:00 2026-05-14T15:28:56+00:00

Some of our reports aren’t displaying properly in Firefox – the first column lacks

  • 0

Some of our reports aren’t displaying properly in Firefox – the first column lacks any css. After investigating, I’m finding:

<tr>
  <td style="HEIGHT:6.93mm" style="...">1st Column</td>
  <td style="...">2nd Column</td>
  <td style="...">3rd Column</td>
</tr>

When I remove the style=”HEIGHT:6.93mm”, it renders properly in Firefox.

Per JudyX’s post here on Monday, February 13, 2006 11:54 PM:

The first column in reports cannot be styled correctly. The report viewer control requires a “height” be specified for all table rows. Unfortunately, it applies this not to the table-row element, but to the first table-cell within that row. When it applies that as a style attribute, it conflicts with the style that we set elsewhere.

Has anyone found a solution to this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:28:56+00:00Added an answer on May 14, 2026 at 3:28 pm

    I can confirm that this still happens with SSRS 2005. Firefox is not the only browser that will not render this as intended by the report designer. Apparently IE7 (and probably IE6) assume the last style attribute to “win” if there are multiple style attributes assigned on an element. IE8 in standards mode and Firefox assume the first style attribute to “win” in this situation. I would assume that all standards compliant browsers will make the same choice as IE8 and Firefox, although our team has not tested this.

    I haven’t found a solution in terms of a hotfix, but I do have a way to prevent the bad HTML from making it to the browser. OMG Ponies – thanks for posting that link to JudyX’s post. Wodeh responded with a good solution about 3/4 of the way down that post – unfortunately, it was not entirely clear how to use the code that was posted.

    The approach is to use a response filter on the page that contains the ReportViewer Control. The filter has access to the raw HTML that will be sent to the browser, and that provides the opportunity to modify the HTML directly without having to result to the new first column trick. In our Page_Load method, we set the Response.Filter property with the following code:

        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Filter = new CorrectSSRSIssuesResponseFilter(Response.Filter);
            if (!IsPostBack) {
                RenderReport();
            }
        }
    

    The CorrectSSRSIssuesResponseFilter class is defined as follows, and is mostly based off of Wodeh’s code from the post. The secret sauce is in the Write() method which uses the RegEx to wipe out the first style attribute:

    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Text;
    
    namespace Reports
    {
        public class CorrectSSRSIssuesResponseFilter : Stream
        {
            private Stream _sink;
            private StringBuilder Output = new StringBuilder();
    
            public CorrectSSRSIssuesResponseFilter(Stream sink)
                : base()
            {
                _sink = sink;
            }
    
            public CorrectSSRSIssuesResponseFilter()
                : base()
            {
                _sink = new MemoryStream();
            }
    
            public override bool CanRead { get { return true; } }
            public override bool CanSeek { get { return true; } }
            public override bool CanWrite { get { return true; } }
            public override void Flush()
            {
                _sink.Flush();
            }
            public override long Length
            {
                get { return _sink.Length; }
            }
            public override long Position
            {
                get
                { return _sink.Position; }
                set
                { _sink.Position = value; }
            }
    
            public override int Read(byte[] buffer, int offset, int count)
            {
                return _sink.Read(buffer, offset, count);
            }
    
            public override long Seek(long offset, SeekOrigin origin)
            {
                return _sink.Seek(offset, origin);
            }
    
            public override void SetLength(long value)
            {
                _sink.SetLength(value);
            }
    
            public override void Write(byte[] buffer, int offset, int count)
            {
                string strBuffer = UTF8Encoding.UTF8.GetString(buffer, offset, count);
                //A Closing HTML tag indicates the response object has finished recieving the entire content of the page
                strBuffer = System.Text.RegularExpressions.Regex.Replace(
                    strBuffer
                    , "<TD style=\"[^\"]*\" style=(?<goodStyle>\"[^\"]*\")>"
                    , "<TD style=${goodStyle}>"
                    , System.Text.RegularExpressions.RegexOptions.Compiled
                    );
    
                buffer = System.Text.Encoding.UTF8.GetBytes(strBuffer);
                _sink.Write(buffer, offset, buffer.Length);
            }
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been tasked to do generate some reports on our Request Tracker usage. Request
We're exporting our analytics reports in various formats, among them CSV. For some clients
I am automatically creating a PDF from some of our reports in a month-end
Lately there has been a problem running some of our reports in access. Last
In error reports from some end users of our game I have quite often
I've been tasked with automating the collection of some reports from our remote locations.
I am currently trying to optimize some bobj reports where our backend is Teradata.
Our users love Microsoft Excel, like many of them. Some of our reports are
I'm using Data Dynamics Active Reports to generate some reports on our website. Action:
In onw of our application, we have some reports that need very specific margins

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.