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?