locked
Reportviewer how to remove Page Width and Whole Page options from Zoom dropdown RRS feed

  • Question

  • User1903078390 posted

    Hi Team

    I wanted to remove 'PageWidth' and 'Whole page' options from ZOOM dropdown of Report viewer microsoft control. As they are not working and my business does not need the same.

    <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

    Regards

    Sudeep

    Tuesday, June 2, 2015 3:29 AM

All replies

  • User1711366110 posted

    I wanted to remove 'PageWidth' and 'Whole page' options from ZOOM dropdown of Report viewer microsoft control. As they are not working and my business does not need the same.

       As per this case, you can try to do in code-behind like below :

    protected void Page_Load(object sender, EventArgs e)
    {
        this.ReportViewer1.AsyncRendering = false;
        this.ReportViewer1.SizeToReportContent = true;
        this.ReportViewer1.ZoomMode = ZoomMode.FullPage;
    }
    

    Friday, June 5, 2015 1:10 AM