Reporting Services Report Viewer Toolbar not downloading images
Hi to anyone who can help me!Running Reporting Services 2008, against a SQL Server 2005 database. (Reporting Services 2005 was un-installed prior to installing RS2008).Everything is working fine from my development machines, but users are now encountering the following issue: Start Date <input id="ReportViewer1_ctl00_ctl03_txtValue" style="font-size: 9pt; font-family: Tahoma;" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" name="ReportViewer1$ctl00$ctl03$txtValue" size="28" type="text" value="1/19/2009" /> <input id="ReportViewer1_ctl00_ctl03_ddDropDownButton" title="Select a value" onclick="document.getElementById('ReportViewer1_ctl00_ctl03').ClientObject.ToggleVisibility();event.cancelBubble=true;SetCalendarUrl(document.getElementById('ReportViewer1_ctl00_ctl03').ClientObject, document.getElementById('ReportViewer1_ctl00_ctl03_ctl01').contentWindow, '\/PeerView\/Reserved.ReportViewerWebControl.axd?OpType=Calendar&LCID=1033&selectDate=' + encodeURIComponent(document.getElementById('ReportViewer1_ctl00_ctl03_txtValue').value), false);return false;" alt="Select a value" name="ReportViewer1$ctl00$ctl03$ddDropDownButton" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.calendar.gif" type="image" /> Project Type <input id="ReportViewer1_ctl00_ctl05_txtValue" style="font-size: 9pt; font-family: Tahoma;" onclick="document.getElementById('ReportViewer1_ctl00_ctl05').MVController.Show();event.cancelBubble=true;" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" name="ReportViewer1$ctl00$ctl05$txtValue" readonly="readonly" size="28" type="text" value="Abstract, Letter, Manuscript, Oral, Other, Poster, Primary Manuscript, Review, Unknown" /><input id="ReportViewer1_ctl00_ctl05_ddDropDownButton" style="margin-top: 1px; vertical-align: top;" title="Select a value" onclick="document.getElementById('ReportViewer1_ctl00_ctl05').MVController.ToggleVisibility();event.cancelBubble=true;return false;" alt="Select a value" name="ReportViewer1$ctl00$ctl05$ddDropDownButton" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.MultiValueSelect.gif" type="image" /> End Date <input id="ReportViewer1_ctl00_ctl07_txtValue" style="font-size: 9pt; font-family: Tahoma;" name="ReportViewer1$ctl00$ctl07$txtValue" size="28" type="text" value="1/19/2010" /> <input id="ReportViewer1_ctl00_ctl07_ddDropDownButton" title="Select a value" onclick="document.getElementById('ReportViewer1_ctl00_ctl07').ClientObject.ToggleVisibility();event.cancelBubble=true;SetCalendarUrl(document.getElementById('ReportViewer1_ctl00_ctl07').ClientObject, document.getElementById('ReportViewer1_ctl00_ctl07_ctl01').contentWindow, '\/PeerView\/Reserved.ReportViewerWebControl.axd?OpType=Calendar&LCID=1033&selectDate=' + encodeURIComponent(document.getElementById('ReportViewer1_ctl00_ctl07_txtValue').value), false);return false;" alt="Select a value" name="ReportViewer1$ctl00$ctl07$ddDropDownButton" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.calendar.gif" type="image" /> Workflow Acronymn <input id="ReportViewer1_ctl00_ctl09_txtValue" style="font-size: 9pt; font-family: Tahoma;" onclick="document.getElementById('ReportViewer1_ctl00_ctl09').MVController.Show();event.cancelBubble=true;" name="ReportViewer1$ctl00$ctl09$txtValue" readonly="readonly" size="28" type="text" value="all acronymns" /><input id="ReportViewer1_ctl00_ctl09_ddDropDownButton" style="margin-top: 1px; vertical-align: top;" title="Select a value" onclick="document.getElementById('ReportViewer1_ctl00_ctl09').MVController.ToggleVisibility();event.cancelBubble=true;return false;" alt="Select a value" name="ReportViewer1$ctl00$ctl09$ddDropDownButton" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.MultiValueSelect.gif" type="image" /> <input id="ReportViewer1_ctl00_ctl00" style="font-size: 9pt; font-family: Tahoma;" onclick="return document.getElementById('ReportViewer1_ctl00').ParametersController.ValidateHasValue('ReportViewer1_ctl00_ctl03_txtValue', '', 'Please enter a value for the parameter \'Start Date\'. The parameter cannot be blank.') && document.getElementById('ReportViewer1_ctl00').ParametersController.ValidateMultiValidValue('ReportViewer1_ctl00_ctl05_divDropDown', 'Please select a value for the parameter \'Project Type\'.') && document.getElementById('ReportViewer1_ctl00').ParametersController.ValidateHasValue('ReportViewer1_ctl00_ctl07_txtValue', '', 'Please enter a value for the parameter \'End Date\'. The parameter cannot be blank.') && document.getElementById('ReportViewer1_ctl00').ParametersController.ValidateMultiValidValue('ReportViewer1_ctl00_ctl09_divDropDown', 'Please select a value for the parameter \'Workflow Acronymn\'.');" name="ReportViewer1$ctl00$ctl00" type="submit" value="View Report" /> <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="Show / Hide Parameters" alt="Show / Hide Parameters" name="ReportViewer1$ctl01$ctl08$ctl00$ctl00$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.ChevronUp.gif" type="image" /> <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="Show / Hide Parameters" alt="Show / Hide Parameters" name="ReportViewer1$ctl01$ctl08$ctl00$ctl01$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.ChevronDown.gif" type="image" /> <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="First Page" alt="First Page" name="ReportViewer1$ctl01$ctl01$ctl00$ctl00$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.FirstPage.gif" type="image" /> <input style="width: 16px; cursor: default; height: 16px; border-width: 0px; padding: 2px;" title="First Page" alt="First Page" disabled="disabled" name="ReportViewer1$ctl01$ctl01$ctl00$ctl01$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.FirstPageDisabled.gif" type="image" /> <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="Previous Page" alt="Previous Page" name="ReportViewer1$ctl01$ctl01$ctl01$ctl00$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.PrevPage.gif" type="image" /> <input style="width: 16px; cursor: default; height: 16px; border-width: 0px; padding: 2px;" title="Previous Page" alt="Previous Page" disabled="disabled" name="ReportViewer1$ctl01$ctl01$ctl01$ctl01$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.PrevPageDisabled.gif" type="image" /> <input id="ReportViewer1_ctl01_ctl01_ctl02" style="font-size: 9pt; font-family: Tahoma;" title="Current Page" onkeypress="function anonymous() { if (event.keyCode == 10 || event.keyCode == 13) { var pageNumber = parseInt(this.value, 10); if (isNaN(pageNumber) || pageNumber < 1 || pageNumber > document.getElementById('ReportViewer1').ClientController.TotalPages) alert('Enter a valid page number'); else document.getElementById('ReportViewer1').ClientController.ActionHandler('PageNav', pageNumber);;; return false;} }" maxlength="8" name="ReportViewer1$ctl01$ctl01$ctl02" size="3" type="text" value="1" /> of 3 <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="Next Page" alt="Next Page" name="ReportViewer1$ctl01$ctl01$ctl05$ctl00$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.NextPage.gif" type="image" /> <input style="width: 16px; cursor: default; height: 16px; border-width: 0px; padding: 2px;" title="Next Page" alt="Next Page" disabled="disabled" name="ReportViewer1$ctl01$ctl01$ctl05$ctl01$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.NextPageDisabled.gif" type="image" /> <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="Last Page" alt="Last Page" name="ReportViewer1$ctl01$ctl01$ctl06$ctl00$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.LastPage.gif" type="image" /> <input style="width: 16px; cursor: default; height: 16px; border-width: 0px; padding: 2px;" title="Last Page" alt="Last Page" disabled="disabled" name="ReportViewer1$ctl01$ctl01$ctl06$ctl01$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.LastPageDisabled.gif" type="image" /> <select id="ReportViewer1_ctl01_ctl03_ctl00" style="font-size: 9pt; font-family: Tahoma;" title="Zoom" multiple="0" name="ReportViewer1$ctl01$ctl03$ctl00" size="0"> <option selected="selected" value="PageWidth">Page Width</option> <option value="FullPage">Whole Page</option> <option value="500">500%</option> <option value="200">200%</option> <option value="150">150%</option> <option value="100">100%</option> <option value="75">75%</option> <option value="50">50%</option> <option value="25">25%</option> <option value="10">10%</option></select> <input id="ReportViewer1_ctl01_ctl04_ctl00" style="font-size: 9pt; font-family: Tahoma;" title="Find Text" onkeypress="if (event.keyCode == 10 || event.keyCode == 13) {document.getElementById('ReportViewer1').ClientController.ActionHandler('Search', document.getElementById('ReportViewer1_ctl01_ctl04_ctl00').value);; return false;}" maxlength="255" name="ReportViewer1$ctl01$ctl04$ctl00" size="10" type="text" /> Find | Next <select id="ReportViewer1_ctl01_ctl05_ctl00" style="font-size: 9pt; font-family: Tahoma;" title="Export Formats" multiple="0" name="ReportViewer1$ctl01$ctl05$ctl00" size="0"> <option selected="selected" value="Select a format">Select a format</option> <option value="XML">XML file with report data</option> <option value="CSV">CSV (comma delimited)</option> <option value="PDF">Acrobat (PDF) file</option> <option value="MHTML">MHTML (web archive)</option> <option value="EXCEL">Excel</option> <option value="IMAGE">TIFF file</option> <option value="WORD">Word</option></select> Export <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="Refresh" alt="Refresh" name="ReportViewer1$ctl01$ctl06$ctl00$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.Refresh.gif" type="image" /> <input style="width: 16px; height: 16px; border-width: 0px; padding: 2px;" title="Print" alt="Print" name="ReportViewer1$ctl01$ctl07$ctl00$ctl00$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.Print.gif" type="image" /> <input style="width: 16px; cursor: default; height: 16px; border-width: 0px; padding: 2px;" title="Print" alt="Print" disabled="disabled" name="ReportViewer1$ctl01$ctl07$ctl00$ctl01$ctl00" src="http://social.msdn.microsoft.com/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Icons.Print.gif" type="image" /> (not sure if above image is pasting properly - the problem is that none of the images in the toolbar section are not getting rendered - either "X"'d out or not shown, for example the arrow for the drop down list selector is missing)This behavior just started happening, as reports were working fine for users previously. No known updates were performed to the server.Needless to say, that when this occurs, the report will not work. When the screen paints, errors are being reported in the the status line, and a partial listing of those errors looks like this: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1) Timestamp: Mon, 18 Jan 2010 22:18:25 UTC Message: 'RSParameters' is undefined Line: 385 Char: 1 Code: 0 URI: http://newebway/Pubstrat/PubSTRAT/ReportViewer.aspx?rpt=rptAcceptanceRates&dd=false&prms=1&1=Program-123 Message: 'RSClientController' is undefined Line: 671 Char: 5 Code: 0 URI: http://newebway/Pubstrat/PubSTRAT/ReportViewer.aspx?rpt=rptAcceptanceRates&dd=false&prms=1&1=Program-123 Message: 'RSParameters' is undefined Line: 684 Char: 6 Code: 0 URI: http://newebway/Pubstrat/PubSTRAT/ReportViewer.aspx?rpt=rptAcceptanceRates&dd=false&prms=1&1=Program-123 Message: Object doesn't support this property or method Line: 397 Char: 5 Code: 0 URI: http://newebway/Pubstrat/PubSTRAT/ReportViewer.aspx?rpt=rptAcceptanceRates&dd=false&prms=1&1=Program-123 Message: Object doesn't support this property or method Line: 397 Char: 5 Code: 0 URI: http://newebway/Pubstrat/PubSTRAT/ReportViewer.aspx?rpt=rptAcceptanceRates&dd=false&prms=1&1=Program-123 Message: 'ReportViewerHoverButton' is undefined Line: 964 Char: 10 Code: 0 URI: http://newebway/Pubstrat/PubSTRAT/ReportViewer.aspx?rpt=rptAcceptanceRates&dd=false&prms=1&1=Program-123 Message: 'document.getElementById(...).Controller' is null or not an object Line: 969 Char: 9 Code: 0 URI: http://newebway/Pubstrat/PubSTRAT/ReportViewer.aspx?rpt=rptAcceptanceRates&dd=false&prms=1&1=Program-123This goes on for pages, but most of the errors are 'document.getElementById(...).Controller' is null or not an objectI saw this thread which has similar issues, and I also saw this type of behavior once, so I followed it's advice: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/0b77148c-7990-4637-98ba-c85ef3a45bbd . I searched the source code as instructed, and did find a "display:inline" div style, and here is some of that source;<div class=" " style="display:inline;font-family:Tahoma;font-size:9pt;height:30px;direction:ltr;"> <table cellpadding="0" cellspacing="0" style="display:inline;"> <tr> <td height="28px"><div> <table id="ReportViewer1_ctl01_ctl01_ctl00_ctl00" onclick="document.getElementById('ReportViewer1').ClientController.ActionHandler('PageNav', 1);return false;" onmouseover="this.Controller.OnHover();" onmouseout="this.Controller.OnNormal();" title="First Page" style="display:none;"> <script type="text/javascript"> document.getElementById('ReportViewer1_ctl01_ctl01_ctl00_ctl00').Controller = new ReportViewerHoverButton("ReportViewer1_ctl01_ctl01_ctl00_ctl00", false, "", "", "", "#73B1C4", "#DDEEF7", "#99BBE2", "1px #73B1C4 Solid", "1px #336699 Solid", "1px #336699 Solid"); </script><tr> <td><input type="image" name="ReportViewer1$ctl01$ctl01$ctl00$ctl00$ctl00" title="First Page" src="/PeerView/Reserved.ReportViewerWebControl.axd?OpType=Resource&amp;Version=9.0.30729.1&amp;Name=Microsoft.Reporting.WebForms.Icons.FirstPage.gif" alt="First Page" style="height:16px;width:16px;border-width:0px;padding:2px;" /></td> </tr> </table><script> document.getElementById('ReportViewer1_ctl01_ctl01_ctl00_ctl00').Controller.OnNormal(); </script>< Despite having this element, I installed the Microsoft Report Viewer 2008 SP1 Redistributable anyway, but the results are still the same. I also found this suggestion:http://arcanecode.com/2007/11/29/sql-server-2005-reporting-services-reportviewer-control-and-ie7/and removed the DOCTYPE line in the .aspx page, and also added AsyncRendering ="False". This still, however, didn't fix any problems.I have witnessed this behavior on IE6, IE7 and IE8. However, I also see it work using IE6 and IE7 from my development boxes. I firmly believed it to be a browser issue initally, but now I really don't know what to think.Much thanks in advance to those of you attempting to help me out.Jim
January 19th, 2010 8:00pm

quick update on current status of this issue:It appears to possibly (likely) be an IIS issue! I know that Reporting Services 2008 doesn't even use IIS, but somehow there is some sort of conflict. For some reason in our environment, there are currently 2 identical virtual directories setup for the application that is launching my report viewer. If it is run from one of them, it works, and then run from the other, it doesn't (of course this is the one that everyone has bookmarks to).So, the real question is why are there 2 identical virtual directories setup for this application. That I don't know that yet, but will update you on that once I get it figured out.
Free Windows Admin Tool Kit Click here and download it now
January 20th, 2010 12:04am

Hi Jim,Have you resolved this?What have you done to resolve this? I have some reports developed with vs2005 and use sqlsrvr2005 as well.Only the first page renders in IE8 and then nothing shows up. However, it exports to pdf well. I tried asyncrendering="False", butI am much worried about the way mhtml behaves with right side borders in tables.Any suggestions welcome.-gkdgkd
February 17th, 2010 4:21am

I Had a similar issue in that during DEV the ReportViewer (9.0) in my app - running in Debug mode worked fine. Deploying it to the server 2008 with IIS7 - and the images would fail. I checked the AppPool for IIS on the server and it was running in 'Intergration@ mode I switched this to 'Classic' and the Images and Charts in the report started rendering :) I did get a Request.Cookie AUTH error also for some reports and added a ValidateRequest="false" to the markup of the aspx page displaying the ReportViewer Control. Have Fun...
Free Windows Admin Tool Kit Click here and download it now
February 8th, 2011 11:43am

Thanks for this nrowntree! This solved my problem. I knew about this issue but completly forgot about it.
February 18th, 2011 12:32am

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

Other recent topics Other recent topics