Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2009, 08:02 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Question Using Crystal Report - paging issue

I have an ASP application where user selects a report number, hits a submitt button and a Crystal Report is being shown (4 page report)

User is able to do "one page" paging but not able to go straight to last page (from any other page). From last page user is however able to straight to 1st page.


Code:
 
Private Sub ShowCrystalReport()
Try
myCrystalReport1.Load(myPath)
myCrystalReport1.SetParameterValue("BatchGuid", ViewState("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
Code:
 
Protected Sub CrystalReportViewer1_Navigate(ByVal source As Object, ByVal e As CrystalDecisions.Web.NavigateEventArgs) Handles CrystalReportViewer1.Navigate
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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with PAGING for Report Viewer Somesh Reporting Services 0 April 30th, 2008 06:01 AM
Problem with Paging in Report Viewer Probleminfinity ASP.NET 3.5 Professionals 0 November 12th, 2007 12:11 PM
.NET C# Crystal Reports 9.0 Report browsing issue vhrao C# 0 April 23rd, 2007 09:06 AM
V V V Urgent::Crystal report format issue narayanark2003 Crystal Reports 0 July 6th, 2006 07:58 AM
Default Paging Issue Jeff1218 Classic ASP Databases 2 March 4th, 2005 05:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.