Print Page | Close Window

ASP.NET problem w/crystal reports navigation

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=4790
Printed Date: 02 May 2024 at 4:43pm


Topic: ASP.NET problem w/crystal reports navigation
Posted By: cipheris
Subject: ASP.NET problem w/crystal reports navigation
Date Posted: 13 Nov 2008 at 5:44am
I developed a report with Crystal Reports XI.  When I preview the report with Crystal Reports XI the report generates 16 pages.
 
I developed an ASP.NET application to display the report on the web.  The report is displayed but when I click on the next button it will only take me to page 2.  If I hit the last page icon then I will go to page 16.  I can not navigate between page 2 - 16.  I can enter a page number and the report will go to that page but the navigation is not working.
 
|< - Takes me to first page no problem.
< - Will take me from page 2 to page 1 or if I am on page 16 it will take me to page 1.
> - Will only take me to page 2.
>| - Will take me to page 16.
 
Any ideas?


-------------
carlos



Replies:
Posted By: cipheris
Date Posted: 13 Nov 2008 at 6:16am
Putting the code in the Page_Init resolved my problem.

-------------
carlos


Posted By: BrianBischof
Date Posted: 13 Nov 2008 at 5:23pm

Glad that you got it working. Many people put their code in the Page_Load() event and this causes problems due to timing issues with the ViewState data. When using CR on an ASP.NET page, putting your code in the Page_Init() event gives the most reliable results.



-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>


Posted By: hardikoncrb
Date Posted: 26 Apr 2011 at 4:53am
Thank  You Very Much...
Your Reply Helped Me Lot
I got the solution
Thanks  A lot


-------------
Hardik Patadia


Posted By: hardikoncrb
Date Posted: 26 Apr 2011 at 4:56am
Originally posted by hardikoncrb


@ member_profile.asp?PF=5776&FID=13 - cipheris :
Thank  You Very Much...
Your Reply Helped Me Lot
I got the solution
Thanks  A lot


-------------
Hardik Patadia



Print Page | Close Window