Thursday, October 13, 2011

Q&A–Crystal Report Viewer’s page navigation buttons problem

Scenario: Created a crystal report using Visual Studio 2008 and published to a 2003 web server. When the report is generated in a browser, the page buttons no the top of the report do not work properly. Next page button always stay at page 2. Previous button always goes to page 1.

Course: The report was rebound on each page load event, which cause the paging info lost.

Solution: Put the binding code into OnInit() event handler, other than OnLoad() event handler. So, the report won’t be rebound on each load event.

No comments:

Post a Comment