Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: ASP.NET problem w/crystal reports navigation Post Reply Post New Topic
Author Message
cipheris
Newbie
Newbie
Avatar

Joined: 28 Oct 2008
Location: United States
Online Status: Offline
Posts: 24
Quote cipheris Replybullet Topic: ASP.NET problem w/crystal reports navigation
    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
IP IP Logged
cipheris
Newbie
Newbie
Avatar

Joined: 28 Oct 2008
Location: United States
Online Status: Offline
Posts: 24
Quote cipheris Replybullet Posted: 13 Nov 2008 at 6:16am
Putting the code in the Page_Init resolved my problem.
carlos
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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>
IP IP Logged
hardikoncrb
Newbie
Newbie
Avatar

Joined: 26 Apr 2011
Location: India
Online Status: Offline
Posts: 2
Quote hardikoncrb Replybullet 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
IP IP Logged
hardikoncrb
Newbie
Newbie
Avatar

Joined: 26 Apr 2011
Location: India
Online Status: Offline
Posts: 2
Quote hardikoncrb Replybullet Posted: 26 Apr 2011 at 4:56am
Originally posted by hardikoncrb


@cipheris :
Thank  You Very Much...
Your Reply Helped Me Lot
I got the solution
Thanks  A lot
Hardik Patadia
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.