views:

902

answers:

4

I have a Crystal Report Viewer control on an aspx page, which is supposed to have built-in paging.

When I click the "next page" button the first time, I move from page 1 to page 2, but every other time I click "next page" the report reloads to page 2.

+1  A: 

The problem may stem from setting the Crystal Report Viewer control's ReportSource during the Page_Load event. This causes the paging information to be over-written with each page load, so the "current page" is re-set to 1 when it should be at 2.

As an easy solution, you can move the code that sets ReportSource into Page_Init

Ryan
A: 

I have similar problem, too, but couldn't find any solution. First Page, Last Page and manuel page number entry works, but next/prev buttons problematic. With next button, first and second page works fine but when I hit next page again in the second page, second page comes again instead of third page. And in the last page "prev. page" changes the page number to 1 instead of last-1. It raises with crosstab reports and raises in 2003 server (not raised on windows 7). The crystal redist setup is 2008 sp2 in both machines.

any ideas ?

sirmak
If you have a follow-up question you should better ask it as a new question, not post it here as an answer. More people would look at it that way. The "Ask Question" button is in the top right...
sth
A: 

I had that problem before on visual studio 2008, installing crystal reports basic service pack 1 solved the problem

lausite
A: 

I had that problem too, check if there's not another WebControl interfering with Crystal (callback problem ? JavaScript ? I'm not sure). In my specific case, Dart File Upload and Crystal didn't get along well when put in the same page.

eternal