I'm migrating from SSRS2005 to SSRS2008. I'm having a problem that some charts render weird.
If I view a report with 2 pie charts next to each other :
(1) (2)
through http:<server>/reportServer/Pages/ReportViewer.aspx?r=rapport1 it renders good in my webbrowser.
The same report viewed through http:<server>/report.asxp?r=rapport1 renders wrong. The second pie chart is duplicated on a new line to the left :
(1) (2)
(2)
I ve copied my old report.aspx from SSRS2005 to the new server.
Any clues?
report.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Report" %> <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.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 ID="ReportViewer1" runat="server" height="1200px" width="640px" Font-Names="Verdana" Font-Size="10pt" processingmode="Remote" exportcontentdisposition="AlwaysInline" showparameterprompts="False" showcredentialprompts="False" showpromptareabutton="False" showfindcontrols="False" ShowZoomControl ="False" SizeToReportContent="True" AsyncRendering="False" BackColor="LightGrey" ShowPageNavigationControls="False" ShowPrintButton="False" ShowRefreshButton="False" ShowPrint="True" ShowToolbar="False"> </rsweb:ReportViewer> </div> </form> </body> </html>
report.aspx.cs
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Report : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string r = Request["r"]; string p = Request["p"]; string c = Request["c"]; if (String.IsNullOrEmpty(c)) { c = "false"; } if (String.IsNullOrEmpty(p)) { p = "jaarrapportage"; } if (!String.IsNullOrEmpty(r)) { this.ReportViewer1.ShowPageNavigationControls = false; if (c == "true") { this.ReportViewer1.ShowPageNavigationControls = true; } this.ReportViewer1.ServerReport.ReportPath = "/" + p + "/" + r; } } } }
web.config
<?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <appSettings> <add key="ReportServerUrl" value="http:// .... intentional ..../reportserver"/> </appSettings> <connectionStrings/> <system.web> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <httpHandlers> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" /> </httpHandlers> <compilation debug="true"> <buildProviders> <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </buildProviders> </compilation> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows" /> <!-- <identity impersonate="true" /> --> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> </system.web> </configuration>
marcus winckers