none
ReportViewer and ZoomMode RRS feed

  • Question

  • Hi
    I'm experiencing the following weird behaviour in a c# web site project. I have an ASP page containging the following:

    <asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" ReportPath="~/path to report">
        </rsweb:ReportViewer>
    </asp:Content>


    and in the code-behind file's Page_Load():

        protected void Page_Load(object sender, EventArgs e)
        {
    ... set some report parameters ...

            ReportViewer1.ZoomMode = Microsoft.Reporting.WebForms.ZoomMode.FullPage;
        }


    Now for some reason when running the project, the reportviewer control is not setting the zoom mode to full page initially. Should I click the View Report button the report is rendered again, this time correctly zoomed.
    The strange part of this behaviour is that I have another page, essentially the same code, yet that is displayed correctly after the initial page load.
    What gives?
    Wednesday, April 23, 2008 1:51 AM

All replies

  • Did you get any where with this?
    I have a similar problem - I have a number of reports which do not display at PageWidth on rendering, but if, after rendered, the user select an alternative zoom, eg WholePage, then selects PageWidth, it renders it correctly - What is going on? How do I make it render correctly in the first place?
    Wednesday, October 14, 2009 11:21 PM