Report Viewer column width too small when viewing in IE 8, works in IE 8 compatibility view and Firefox
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
September 24th, 2010 6:43pm

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 ChenJin Chen - MSFT
Free Windows Admin Tool Kit Click here and download it now
September 28th, 2010 12:13pm

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 Floydcafloyd
September 29th, 2010 4:35pm

Were you able to resolve this?
Free Windows Admin Tool Kit Click here and download it now
October 8th, 2010 6:41pm

Not yet. Waiting on Jin to respond back to me.cafloyd
October 13th, 2010 6:33pm

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.
Free Windows Admin Tool Kit Click here and download it now
November 8th, 2010 3:23pm

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

Other recent topics Other recent topics