Visual Studio Development Bookmark and Share   
 index > Visual Studio Report Controls > ReportViewer and ZoomMode
 

ReportViewer and ZoomMode

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?
shrooman  Wednesday, April 23, 2008 1:51 AM
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?
Rich at Delta  Wednesday, October 14, 2009 11:21 PM

You can use google to search for other answers

Custom Search

More Threads

• ReportViewer and modal dialog
• xml files as data sources
• ReportViewer Samples for 2008 Download Corrupt?
• How to add two tables in a list of a master-detail report
• Checking of which control on previous form that call this form
• reportviewer export error
• Problem with subreport in LocalReport
• is reportviewer and rdlc is the right tool for me?
• Refresh must be clicked to get missing data to appear on report. Why is data not appearing
• Crystal report page orientation