My report is displayed in the iframe, but the iframe is tiny. I am receiving an error 'uncaught type error' 'cannot read property 'height' of null at resize iframe'. I need the viewer to autosize to the size of report that is being displayed.
@using ReportViewerForMvc;
<div id="gsdResults2" width="100%" height="100%">@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer)</div>
ReportViewerWebForm.aspx
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body style="margin: 0px; padding: 0px;">
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="ReportViewerForMvc" Name="ReportViewerForMvc.Scripts.PostMessage.js" />
</Scripts>
</asp:ScriptManager>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" BackColor="#FFFBF7" ZoomMode="FullPage"
BorderWidth="0px" ShowFindControls="False" Height="100%" ShowBackButton="True"
ProcessingMode="Remote" ShowPromptAreaButton="False" >
</rsweb:ReportViewer>
</div>
</form>
</body>
</html>
Any help appreciated!
LAS