Home Dashboard Directory Help
Search

ReportViewer 2010 iframe Internet Explorer by philjones88


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 561066
Opened: 5/24/2010 5:43:02 AM
Access Restriction: Public
1
Workaround(s)
view
0
User(s) can reproduce this bug

Description

Hello,

Attempting to embed a SQL Reporting Services report into a page in an iframe results in a Sys is undefined error. However this appears to work fine in Firefox and Chrome.

A break down is that there is a Web Form called Report.aspx with a ReportViewer Control and ScriptManager inside a form element.

The Report.aspx is then requested via an AJAX get call and placed into an iframe.

It appears only in IE does it have a problem loading the Ajax framework, even though all script requests succeed and the code is identical to Firefox/Chrome.

I can provide an example project Visual Studio 2010 file if required.

It does work setting src="/Report.aspx", however in my business scenario I will need to pass potentially large values to the report and GET might not suffice.
Details
Sign in to post a comment.
Posted by Microsoft on 2/3/2011 at 1:26 PM
Thank you for your feedback. We have debugged this issue and found this to be an internet explorer issue.

Please file this issue with the Internet Explorer team. If you need assistance, please contact customer support.

Thanks.

SQL Server Reporting Services
Posted by Microsoft on 5/24/2010 at 11:05 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by Microsoft on 5/24/2010 at 10:49 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by Microsoft on 5/24/2010 at 5:03 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by philjones88 on 5/25/2010 at 1:37 AM
The work around is to use a HTML form to POST and target the iframe. Such as, in the following example, I build a form and append to the DOM then trigger the form. This works across all browsers I have tested so far. Although this is a work around, it would be nice to be able to do this via an AJAX call to populate the iframe as I could then pass content such as JSON more easily.

    <div id="SSRSReport"></div>

    <div id="HiddenFormTarget" style="display:none;"></div>

    <iframe frameborder="0" id="Frame1" name="Frame1" style="width: 100%;height: 400px; overflow: hidden;">
    </iframe>

    <script type="text/javascript">
        function ProcessReport() {
            var form = $('<form method="post" target="Frame1" action="/Report.aspx"></form>');
            form.append('<input type="hidden" id="val1" name="val1" value="Hello World!!!" />');

            $("#HiddenFormTarget").append(form);

            form.submit();

            $("#HiddenFormTarget").empty();
        }

        $(window).load(function () {
            ProcessReport();
        });
    </script>