Tuesday, November 25, 2008

VS 2008 Crystal Report Viewer Zooming Problem

Problem encountered: After Zooming in/out a few times, the page resolution get stucked at some point and won't re-zoom back.

Solution:
Remove the databinding.

protected void Page_Load(object sender, EventArgs e)
{

ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath("Reports/TestCrystalReport.rpt"));

ReportViewer.ReportSource = rd;
//ReportViewer.DataBind(); -->remove this line to fix the error

}