locked
CRM 2011: Embeded Report design problem in Internet Explorer RRS feed

  • Question

  • Hi,

    I have an embedded custom report in my Dashboard that is put into an IFrame. When I open this report  in internet explorer by itself under "Report" the design is correct  but when it opens in the dashboard it appears as below. There is an unexplained space under file and my report ends up being clipped since the IFrame space is insufficient.  

    Could someone help me how to fix this   ?  It opens well with Google Chrome but  I need to be using Internet Explorer
    Sunday, March 9, 2014 10:25 AM

All replies

  • Create an Html web resource and add it in your dashboard.

    In html

    <!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>
        <title></title>
        <script type="text/javascript" language="javascript">
           
            function onloadReport() {
                var iframe = document.getElementById('iframeId');
                if (iframe != null) {
                    Remove(iframe); //remove main frame
                    resizeIframe(iframe);
                    if (iframe.contentWindow.document.getElementsByClassName('viewer_td_FilterEditor')!=null)
                        iframe.contentWindow.document.getElementsByClassName('viewer_td_FilterEditor')[0].style.top = "0px"
                }
                }
                function Remove(iframe) {
                    return (EObj = iframe.contentWindow.document.getElementById('crmMenuBar')) ? EObj.parentNode.removeChild(EObj) : false;
                }
                function resizeIframe(obj) {
                    obj.style.height = (document.documentElement.scrollHeight) + 'px';
                }
                  
        </script>
    </head>
    <body >
    <iframe  id="iframeId" width="100%" height="100%" onload="onloadReport()" src="https://orgNAme.crm5.dynamics.com/crmreports/viewer/viewer.aspx?action=run&id={DA295A99-29C8-E211-BCDF-D8D3855B253B}">

    </iframe>
    </body>
    </html>


    Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Monday, March 10, 2014 4:25 AM
  • Is there a fix for that instead of a web resource ? I'll have to keep this as my last resort.
    Saturday, March 15, 2014 9:31 AM
  • I tried this, but same problem


    • Edited by SB User Monday, March 17, 2014 3:23 PM
    Monday, March 17, 2014 3:16 PM