on 04-08-2009 10:10 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.