Print Page | Close Window

Report viewer not paging in asp.net

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=10849
Printed Date: 01 May 2024 at 5:57am


Topic: Report viewer not paging in asp.net
Posted By: KMeyer
Subject: Report viewer not paging in asp.net
Date Posted: 17 Aug 2010 at 3:13am
I have found numerous posts via Google on the fact that the asp.net report viewer will not navigate past page 2. The examples found are generally about issues displaying reports programatically and the paging bar not responding.
 
In my case I am just using an imbedded reportviewer and when a multipage report is displayed a similar problem occurs it will go to pages past 2 if nominated, but not navigate past 2 using the nav bar button. One post suggested loading CR SP1 for 2005, this has not corrected the problem.
 
I was wondering if anyone else has had this issue and knows of a reportviewer property setting in VS 2005 that may be the cause.
 
Thanks
Kim



Replies:
Posted By: KMeyer
Date Posted: 18 Aug 2010 at 8:56pm
The answer lies here Smile
 
http://msdn.microsoft.com/en-us/library/ms225455%28VS.80%29.aspx - http://msdn.microsoft.com/en-us/library/ms225455(VS.80).aspx
 
Here is how I got the Reportviewer to navigate correctly as per the tutorial linked in the above post.
 

using CrystalDecisions.CrystalReports.Engine;

using CrystalDecisions.Shared;

public partial class OrderEntryCheck : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

CrystalReportSource1.ReportDocument.SetDatabaseLogon("user", "pswd","server address","database");

}

private void ConfigureCrystalReports()

{

CrystalReportViewer1.ReportSource = CrystalReportSource1;

}

private void Page_Init(object sender, EventArgs e)

{

ConfigureCrystalReports();

}

}

Hope it helps others who find their way here, over the years a number of people have asked the same question on numerous asp.net forums, I believe this to be a complete answer.
 
Kim
 
 
 



Print Page | Close Window