Reportviewer's toolbar does not render properly in production environment
Hi, I have this report perfectly display in development environment as shown below. But after moving the report to production environment, the report viewer toolbar seems to lost all its style. (See picture below) I have check to make sure that the production and development have the same security right setting to the report manager's style folder. I just couldn't figure out what went wrong. Could anybody here help? Appreciate your feedback and advice. Thanks and Regards CH
July 3rd, 2009 12:23pm

Hi CH, From your descriptions, the issue is the ReportViewers toolbar display fine in development environment but not in production environment. The ReportViewer display the toolbar inline using the StypeSheet display:inline. The StypeSheet is generated from assembly. The issue seems to be the ReportViewer has not installed correctly in the production server. To make sure the root cause, please right-click the page with ReportViewer and then click View Source. In the source file, search the item ReportViewer1_ctl01_ctl01_ctl00(Please replace the ReportViewer1 with the ReportViewers name in the project ). We will find some HTML source such as: <div style="display:inline;font-family:Verdana;font-size:8pt;height:30px;"> <table cellpadding="0" cellspacing="0" style="display:inline;"> <tr> <td height="28px"><div id="ReportViewer1_ctl01_ctl01_ctl00"> If the parent element does not have the style display:inline;, we can make the root cause is the ReportViewer has not installed correctly in the production server. Please install the Microsoft Report Viewer Redistributable to solve the issue. If the solution above does not help, please post the source of the page for future research. We can download the ReportViewer Redistributable from: Microsoft Report Viewer Redistributable 2005 SP1 (Full Installation): http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=e7d661ba-dc95-4eb3-8916-3e31340ddc2c Microsoft Report Viewer 2008 SP1 Redistributable: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=bb196d5d-76c2-4a0e-9458-267d22b6aac6 Please feel free to ask, if you have any more questions. Thanks, Jin ChenJin Chen - MSFT
Free Windows Admin Tool Kit Click here and download it now
July 6th, 2009 12:17pm

If the solution above does not help, please post the source of the page for future research. Please feel free to ask, if you have any more questions. Jin Chen - MSFT Hi, this solution doesn't seem to fix our problem logged here http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/beb82a3a-b2a9-4d27-8915-2de81956d86c?prof=required To cofirm we've loaded the Report Viewer and the problem persists (SQL Server 2005 on Widowns Server 2003 SP2 Standard Edition, viewed on IE 6/7 Windows XP SP3). Is this source code any help? </tr><br/></table><div class="ToolbarPageNav WidgetSet" style="direction:ltr;"><br/> <table cellpadding="0" cellspacing="0" style="display:inline;"><br/> <tr><br/> <td height="28px"><div><br/> <table id="ctl142_ctl01_ctl01_ctl00_ctl00" class="ImageWidget" onclick="document.getElementById('ctl142').ClientController.ActionHandler('PageNav', 1);return false;" onmouseover="this.Controller.OnHover();" onmouseout="this.Controller.OnNormal();" title="First Page" style="display:none;"><br/> <script type="text/javascript"><br/>document.getElementById('ctl142_ctl01_ctl01_ctl00_ctl00').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl00_ctl00", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl00$ctl00$ctl00" class="ImageWidget" title="First Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.FirstPage.gif" alt="First Page" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl142$ctl01$ctl01$ctl00$ctl00$ctl00&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" style="border-width:0px;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl00_ctl00').Controller.OnNormal();<br/> </script><table id="ctl142_ctl01_ctl01_ctl00_ctl01" disabled="disabled" onmouseout="this.Controller.OnNormal();" class="DisabledButton" title="First Page"><br/> <script type="text/javascript"><br/> document.getElementById('ctl142_ctl01_ctl01_ctl00_ctl01').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl00_ctl01", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl00$ctl01$ctl00" disabled="disabled" title="First Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.FirstPageDisabled.gif" alt="First Page" style="height:16px;width:16px;border-width:0px;padding:2px;cursor:default;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl00_ctl01').Controller.OnNormal();<br/> </script><br/> </div></td><td class="InterWidgetGroup"></td><td height="28px"><div><br/> <table id="ctl142_ctl01_ctl01_ctl01_ctl00" class="ImageWidget" onclick="document.getElementById('ctl142').ClientController.ActionHandler('PageNav', document.getElementById('ctl142').ClientController.CurrentPage-1);return false;" onmouseover="this.Controller.OnHover();" onmouseout="this.Controller.OnNormal();" title="Previous Page" style="display:none;"><br/> <script type="text/javascript"><br/> document.getElementById('ctl142_ctl01_ctl01_ctl01_ctl00').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl01_ctl00", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl01$ctl00$ctl00" class="ImageWidget" title="Previous Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.PrevPage.gif" alt="Previous Page" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl142$ctl01$ctl01$ctl01$ctl00$ctl00&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" style="border-width:0px;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl01_ctl00').Controller.OnNormal();<br/> </script><table id="ctl142_ctl01_ctl01_ctl01_ctl01" disabled="disabled" onmouseout="this.Controller.OnNormal();" class="DisabledButton" title="Previous Page"><br/> <script type="text/javascript"><br/> document.getElementById('ctl142_ctl01_ctl01_ctl01_ctl01').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl01_ctl01", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl01$ctl01$ctl00" disabled="disabled" title="Previous Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.PrevPageDisabled.gif" alt="Previous Page" style="height:16px;width:16px;border-width:0px;padding:2px;cursor:default;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl01_ctl01').Controller.OnNormal();<br/> </script><br/> </div></td><td class="InterWidgetGroup"></td><td height="28px"><input name="ctl142$ctl01$ctl01$ctl02" type="text" maxlength="8" size="3" id="ctl142_ctl01_ctl01_ctl02" disabled="disabled" title="Current Page" class="PageNumberText" onkeypress="if (event.keyCode == 10 || event.keyCode == 13) {<br/>var pageNumber = parseInt(this.value, 10);<br/>if (isNaN(pageNumber) || pageNumber &lt; 1 || pageNumber > document.getElementById('ctl142').ClientController.TotalPages)<br/> alert('Enter a valid page number');<br/>else<br/> document.getElementById('ctl142').ClientController.ActionHandler('PageNav', pageNumber);;; return false;}" /></td><td class="InterWidgetGroup"></td><td height="28px"><span>of</span></td><td class="InterWidgetGroup"></td><td height="28px"><span id="ctl142_ctl01_ctl01_ctl04">0</span></td><td class="InterWidgetGroup"></td><td height="28px"><div><br/> <table id="ctl142_ctl01_ctl01_ctl05_ctl00" class="ImageWidget" onclick="document.getElementById('ctl142').ClientController.ActionHandler('PageNav', document.getElementById('ctl142').ClientController.CurrentPage+1);return false;" onmouseover="this.Controller.OnHover();" onmouseout="this.Controller.OnNormal();" title="Next Page" style="display:none;"><br/> <script type="text/javascript"><br/> document.getElementById('ctl142_ctl01_ctl01_ctl05_ctl00').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl05_ctl00", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl05$ctl00$ctl00" class="ImageWidget" title="Next Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.NextPage.gif" alt="Next Page" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl142$ctl01$ctl01$ctl05$ctl00$ctl00&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" style="border-width:0px;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl05_ctl00').Controller.OnNormal();<br/> </script><table id="ctl142_ctl01_ctl01_ctl05_ctl01" disabled="disabled" onmouseout="this.Controller.OnNormal();" class="DisabledButton" title="Next Page"><br/> <script type="text/javascript"><br/> document.getElementById('ctl142_ctl01_ctl01_ctl05_ctl01').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl05_ctl01", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl05$ctl01$ctl00" disabled="disabled" title="Next Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.NextPageDisabled.gif" alt="Next Page" style="height:16px;width:16px;border-width:0px;padding:2px;cursor:default;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl05_ctl01').Controller.OnNormal();<br/> </script><br/> </div></td><td class="InterWidgetGroup"></td><td height="28px"><div><br/> <table id="ctl142_ctl01_ctl01_ctl06_ctl00" class="ImageWidget" onclick="document.getElementById('ctl142').ClientController.ActionHandler('PageNav', document.getElementById('ctl142').ClientController.TotalPages);return false;" onmouseover="this.Controller.OnHover();" onmouseout="this.Controller.OnNormal();" title="Last Page" style="display:none;"><br/> <script type="text/javascript"><br/> document.getElementById('ctl142_ctl01_ctl01_ctl06_ctl00').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl06_ctl00", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl06$ctl00$ctl00" class="ImageWidget" title="Last Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.LastPage.gif" alt="Last Page" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl142$ctl01$ctl01$ctl06$ctl00$ctl00&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" style="border-width:0px;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl06_ctl00').Controller.OnNormal();<br/> </script><table id="ctl142_ctl01_ctl01_ctl06_ctl01" disabled="disabled" onmouseout="this.Controller.OnNormal();" class="DisabledButton" title="Last Page"><br/> <script type="text/javascript"><br/> document.getElementById('ctl142_ctl01_ctl01_ctl06_ctl01').Controller = new ReportViewerHoverButton("ctl142_ctl01_ctl01_ctl06_ctl01", false, "NormalButton", "HoverButton", "HoverPressedButton", "", "", "", "", "", "");<br/> </script><tr><br/> <td><input type="image" name="ctl142$ctl01$ctl01$ctl06$ctl01$ctl00" disabled="disabled" title="Last Page" src="/Reports3/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.00.4053.00&amp;Name=Microsoft.Reporting.WebForms.Icons.LastPageDisabled.gif" alt="Last Page" style="height:16px;width:16px;border-width:0px;padding:2px;cursor:default;" /></td><br/> </tr><br/> </table><script><br/> document.getElementById('ctl142_ctl01_ctl01_ctl06_ctl01').Controller.OnNormal();<br/> </script><br/> </div></td><br/> </tr><br/> </table><br/> </div><table cellpadding="0" cellspacing="0" ToolbarSpacer="true" style="display:inline;"><br/>
April 6th, 2011 11:10am

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

Other recent topics Other recent topics