cancel
Showing results for 
Search instead for 
Did you mean: 

Page navigation buttons are not working sometimes.

Former Member
0 Kudos

Hi,

I am working with asp.net and Crysatl reportXI R2.

I am displaying the repors on the web ui with the help of Crystal report Viewer and i have displayed the page naviagtion butttons on the viewer.

The problem what i am facing is that the page navigation buttons are not working sometimes. Especially with the First Click on the Next or Last Button.

also if there are more than 1 page (Eg:No of pages2)i would like to display as 1/2 in the viewer.

At present what it showing is /1+.

Could any one please tell me how to solve the above said problems

Regards,

smitha.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184995
Active Contributor
0 Kudos

It will show 1 of 1+ until you hit the last page since it only renders the current page and so does not know how many pages are in the report. If you want it to show 1 of xxxx then put the page n of m special field on the report somewhere.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all,

Thanks for your responses.

i solved the problem with the Page navigation buttons .

it was not working because i was refreshing the crystal report viewer every now and then.

the code was m_CrystalReportViewer.Refresh().

now commented the particular code and the navigation buttons are working fine.

Regards,

smitha

Edited by: smitha thomas on Jul 15, 2009 1:52 PM

Former Member
0 Kudos

Hii Smitha...

   Please tell me how you are binding the report in button click.because in my case, not only the navigation buttons but also Export and Print are not working when i bind under button click.

Navigation Buttons Problem--  when i click on Next button, it is moving to second page but when i again click on Next button, it stops there and not moving any further. please help me...

Former Member
0 Kudos

Hi,

Check if this note "1216062 - Clicking the Next navigation button on the Web Forms Viewer returns same page" helps!!

Click [here|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true] and serch for the note also search by "#1216062".

Hope this helps.

Regards,

Amit

Former Member
0 Kudos

Hi Amit,

I searched for the note reffered by you and i am not able to find the same.

Regards,

smitha

Former Member
0 Kudos

Hi,

Then put the string which is in bold and search.

Hope this will work!!

Amit

Former Member
0 Kudos

Hi Smita,

Where are you loading your report?

Try to to load report in Is not post back()

If you bind your report's datasource in the page_load, try doing it in the page_init instead.

When you click on next button then load evnt is fired.

When load event is fired then your code executed again and again which causes the issue, to prevent that you can put your code in the "IsPostBack" property so that the code get executed once, regardless the number of times next button pressed.

Regards,

Shweta

Former Member
0 Kudos

Hi Swetha,

Thanks for your reply.

I am loading the report on the click of a button with the help of crystal report viewer.

Working scenario is

a) Select all the reports that the user wants to select by checking the Check box provided

b) and click on the button(Generate ReportButton) to display the reports.

since we are displaying reports on click of button so all the processing for report generation is happening after page load event.

Regards,

smitha.

Former Member
0 Kudos

Hi Smitha,

As Jason has mentioned in the previous post, the viewer will show you the 1+ number of pages as it is designed to fetch the records per page and shows if you have multiple pages available for the report or not. The total number of pages will not come up until we reach the last page. The number of pages can come up in report though, but not in Viewer, so I believe its a normal behavior that we are getting, please correct me if I am wrong.

Also in this scenario the IsPostBack method will not work for us. I believe that's that viewers functionality and we cannot change it. Lets see if we have anymore ideas coming up.

Regards,

AG.

Edited by: AG on Apr 15, 2009 5:26 PM