locked
SizeToReportContent works with Height and Width RRS feed

  • Question

  • User-1350042179 posted

    Hi 

    I have this configuration in aspnet....

    <rsweb:ReportViewer runat="server" Font-Names="Verdana" Font-Size="8pt" Height="482px" SizeToReportContent="True" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="1213px">
    </rsweb:ReportViewer>

    Is it correct: SizeToReportContent="True"  and write: Width="1213px" and  Height="482px"

    Wednesday, November 18, 2015 1:05 PM

Answers

  • User1644755831 posted

    Hello neoaguil17,

    Is it correct: SizeToReportContent="True"  and write: Width="1213px" and  Height="482px"

     Please see this similar discussion.

    http://stackoverflow.com/questions/778688/reportviewer-control-height-issue

    Could you try this.

    <div style="Width:auto;"> 
    <form id="form1" runat="server" style="width:100%; height:100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <rsweb:ReportViewer ID="rptViewer" runat="server" Width="100%" Height="100%" AsyncRendering="False" SizeToReportContent="True">
        </rsweb:ReportViewer>
    </form></div>

    With Regards,

    Krunal Parekh

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 19, 2015 8:37 PM