Report Viewer 2008 Report Load, Toolbar, and Toggle Button Problems

Last post 04-09-2009 11:14 AM by shelly_saunders. 2 replies.

Sort Posts:

  • Report Viewer 2008 Report Load, Toolbar, and Toggle Button Problems

    02-19-2009, 7:21 PM

    I am developing with Visual Studio 2008 SP 1 and IE7 on Windows Vista Ultimate SP1.  I am trying to use Report Viewer 2008/v9.0 with a LocalReport in an ASP.NET 3.5 web application.  I currently have the References for Microsoft.ReportViewer.Common and Microsoft.ReportViewer.WebForms configured for local copy, and both Microsoft.ReportViewer.Common.dll and Microsoft.ReportViewer.Webforms.dll are copied to the \bin folder when I build the solution; both DLL's are version 9.0.30729.1 (determined by the information displayed when hovering over them in Windows Explorer).

    The results...

    When I run the report in debug mode using my Visual Studio, or when I run it in IIS6 on my production Windows 2003 R2 Server, the report is generated and displays in the Report Viewer.  However, I am experiencing the following three (3) problems:  the report generates an error on load, the toolbar's functionality is reduced, and the toggle buttons don't work.

    Problem 1... 

    When the report is first loaded, the error:

    Microsoft JScript runtime error: Object doesn't support this property or method"

    ...is trapped:

    Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Scripts.ReportViewer.js

    ...and the code breaks in my Visual Studio debugger in the above .js file on:

    "function OnReportLoaded(reportObject, reloadDocMap)" on line "this.CustomOnReportLoaded();"

    ...but will continue and display the report if I just allow the program to run.

    Problem 2

    Only the export and refresh buttons on the toolbar work.  The other buttons do nothing that I can see when I click on them, no errors are being detected and trapped when ran in debug mode.

    Problem 3

    The toggle buttons (provided when you check the checkbox "Edit Group -> Visibility -> Visibility can be toggled by another report item") display [+] and keep displaying [+] even after clicking them, they don't display/toggle the information they should display/toggle when I click on them, and clicking on them causes this error:

    Microsoft JScript runtime error: Object doesn't support this property or method"

    ...trapped in:

    Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=9.0.30729.1&Name=Microsoft.Reporting.WebForms.Scripts.ReportViewer.js

    ...and the code breaks in my Visual Studio debugger in the above .js file on:

    "function PerformClientSidePageChange(url)" on line "this.CustomOnAsyncPageChange();"

    Can anyone assist?

    Cheers.

  • Re: Report Viewer 2008 Report Load, Toolbar, and Toggle Button Problems

    04-06-2009, 11:07 PM
    Answer
    • Member
      12 point Member
    • Pushpaka
    • Member since 04-07-2009, 3:02 AM
    • Posts 1

    Hi, I had same set of problems. Googled but couldn't find any useful resource to get. But, later found the solution to my problem. Don't know this help you or not. But thought this might help you.


    In my pages, I used a white space removal method to clear the unnecessary space between > and < tags. When I removed that method, report problem was solved. Now report are working without any problem.


    Pushpaka

    pushpaka.blogspot.com
  • Re: Report Viewer 2008 Report Load, Toolbar, and Toggle Button Problems

    04-09-2009, 11:14 AM
    Answer

    I had the same thing but the second post led me to the solution. In my case it was caused by the page compression tool I use (MBCompression). Once I excluded the page from being compressed it worked fine.

Page 1 of 1 (3 items)