Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report Navigation to next page problem?

Status
Not open for further replies.

nomi2000

ISP
Feb 15, 2001
676
CA
HI
I have a very frustrating problem with Crystal report viewer with .Net for web. I am using that control and gave the recordset back to the data source and the report is generated perfect but when I pressed the Navigation button on viewer control to see the next pages of the report then the viewer is vanished and I can see anything and then when I pressed Generate Report button then it will show me the second page which I wanted to navigate when I pressed that button
Do you people have any idea what might be the problem?
Thanks
Nouman
 
I also am experiencing a very similar frustration. I have a report with 5 pages and the navigate button will go to page 2, but it will not go to 3, 4, or 5. I can get to 5 using the last page button and 3 and 4 using the goto button, but not with the navigation arrows. I just downloaded the hot fix for Crystal .net, but it doesn't solve the problem. If anyone out there has any suggestions, I'd love to hear them! Thanks!!
 
hi jims
i found the solution and wants to share with you,actually this is the problem in Crystal report for .net and you have to set the reportSource in PostBack event to get rid of it.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If IsPostBack Then
rptViewer.ReportSource = Session("objrpt")
rptViewer.Visible = True
End If
End sub

Hope it will help you out it works perfect for me
Nouman
 
I contacted Crystal Support via email yesterday and have a second solution (I'm using C#). The one you refer to is covered under their knowledge base article C2012164. Thanks for replying, the support guy thought that also might work, but wasn't sure.

The solution the support rep (VERY helpful by the way (name was Jason)) was to put my code under the onInit section, which is located under the .net generated code. This also worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top