I have an ASP application where user selects a report number and hits a submitt button to show the report. The report is always 4 pages.
User is able to page one page at a time but not able to go straight to the last page. From last page user is however able to go straight to the
![Question](http://www.crystalreportsbook.com/Forum/smileys/smiley25.gif)
1st page.
Private
Sub ShowCrystalReport()
Try
myCrystalReport1.Load(myPath)
myCrystalReport1.SetParameterValue(
"BatchGuid", BatchGuid)
myCrystalReport1.SetDatabaseLogon(System.Configuration.ConfigurationManager.AppSettings(
"CrystalReport_UserId"), System.Configuration.ConfigurationManager.AppSettings("CrystalReport_Password"))
CrystalReportViewer1.ReportSource = myCrystalReport1
CrystalReportViewer1.Zoom(90)
Catch ex As Exception
ErrorIndicator =
True
End Try
End Sub
Protected Sub CrystalReportViewer1_Navigate(ByVal source As Object, ByVal e As CrystalDecisions.Web.NavigateEventArgs) Handles CrystalReportViewer1.Navigate
BatchGuid = ViewState("BatchGuid")
ShowCrystalReport()
End Sub
I read somewhere that portion of the code should go in the page_init, not sure if this is the case and what portion of the code should go here.