locked
Report Viewer ZoomMode not working properly. RRS feed

  • Question

  • User-709354076 posted

    Hello,

    When i set ZoomMode = "PageWidth" from code behind, it set the value in zoom control but there is no effect in content.

    If i change the zoom level manually (in running code) it works fine. 

    I don't understand why report is not display as "PageWidth" and/or "Full Page" by default. But it works when i set Zoom Percentage = "200%".

    I am using processmode = local.

    Please advise what i am doing wrong.

    Here is the aspx code..

     <rsweb:ReportViewer ID="rvReports" runat="server" Font-Names="Verdana" 
                        Font-Size="8pt" Height="500px" Width="100%"
                        ProcessingMode="Local" 
                        >

     <rsweb:ReportViewer ID="rvReports" runat="server" Font-Names="Verdana" 

                        Font-Size="8pt" Height="500px" Width="100%"

                        ProcessingMode="Local" >

     and I am seeting up ZoomMode from code behind:

    rvReports.ZoomMode = ZoomMode.PageWidth; in Page_Load();


    Monday, February 8, 2010 2:52 PM

All replies

  • User-1100689076 posted

    When i set ZoomMode = "PageWidth" from code behind, it set the value in zoom control but there is no effect in content.


     reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
    this is the winform version of proper syntax.

    Tuesday, April 1, 2014 6:48 PM