locked
Report Viewer column width too small when viewing in IE 8, works in IE 8 compatibility view and Firefox RRS feed

  • Question

  • IE 8 Version 8.0.7600.16385 64-Bit Edition
    Report Viewer 9.0.0.0

    The web page is just the report viewer control (see code below).  

    When the report is rendered in Report Viewer   (IE 8), the width of the first column is much smaller than it should be. 
    When the report is rendered in Report Manager (IE 8), the width of the first column is normal size.  
    When the report is rendered in Report Viewer (Firefox or IE 7 compatibility view), the width of the first column is normal size.

    test.aspx

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
    <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
     Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
     <title></title>
    </head>
    <body>
     <form id="form1" runat="server">
     <div>
     <rsweb:reportviewer enableviewstate="true" id="ReportViewer1" runat="server" processingmode="Remote"
      asyncrendering="False" width="100%" height="100%">
      </rsweb:reportviewer>
     </div>
     </form>
    </body>
    </html>
    

    Test.aspx.cs

     

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    
    public partial class test : System.Web.UI.Page
    {
     protected void Page_Load(object sender, EventArgs e)
     {
     ReportViewer1.ServerReport.ReportServerUrl = new System.Uri(System.Configuration.ConfigurationManager.AppSettings["RSLocation"]);
     while (this.ReportViewer1.ServerReport.IsDrillthroughReport)
     {
      this.ReportViewer1.PerformBack();
     }
     this.ReportViewer1.ServerReport.ReportPath = "/Tron Reports/Ventura/Test7";
     this.ReportViewer1.ServerReport.Refresh();
     }
    }
    
    

     

    Does anyone know why this happens in IE 8, but not IE 8 compatibility view or Firefox?

    Thanks in Advance.


    cafloyd
    Friday, September 24, 2010 3:43 PM

All replies

  • Hi Cafloyd,

    The code you used is fine.

    Based on your description, the issue seems to be a product issue. However, I need an in-house reproduce to verify it. So, could you pleaes send me the files to reproduce the issue? You can send me the files to sqltnsp_at_microsoft_com

    Also, could you please try to up the ReportViewer to date to check if the issue is solved?
    Microsoft Report Viewer 2008 SP1 Redistributable: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=bb196d5d-76c2-4a0e-9458-267d22b6aac6

    Thanks,
    Jin Chen


    Jin Chen - MSFT
    Tuesday, September 28, 2010 9:13 AM
  • Jin,

    I sent you the files yesterday and we installed the Microsoft Report Viewer Redistribuatble 2005 SP1 last night, but it didn't resolve the wrapping issue.

    Let me know if there is anything else I can provide you.

    thanks,

    Chris Floyd


    cafloyd
    Wednesday, September 29, 2010 1:35 PM
  • Were you able to resolve this?
    Friday, October 8, 2010 3:41 PM
  • Not yet.

     

    Waiting on Jin to respond back to me.


    cafloyd
    Wednesday, October 13, 2010 3:33 PM
  • I found another post (can't remember where) that recommended adding a textbox with its width set to that of the report that's 1px tall. It's a bit of a hack, but it works.
    Monday, November 8, 2010 8:21 PM