Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 November 29th, 2006, 12:23 PM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default crystal report page navigation not work well

I use crystal report 9 with VS.Net 2003. I load crystal report to the web form. but I have a problem on next button.

if I click next, it goes to 2 page, but when I click next again, it is still in 2 page, never can pass page 2. But I can go to last page. If I click previous button, it always goes to 1 page. why it happen? and how can I fix this problem. if I put set parameters in !Ispostback block, when I click next, I got missing parameter value error.

 I am very appreciated if anyone can give me some hints. Thanks!


 
Old December 2nd, 2006, 09:17 PM
Registered User
 
Join Date: Apr 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You probably need to put the code that binds CrystalReportViewer.ReportSource into the Page_Init event handler rather than the Page_Load event handler.

For an explanation why, see:
http://msdn2.microsoft.com/en-us/library/ms225455(VS.80).aspx

Cheers,

David Gadd

 
Old January 4th, 2007, 11:16 AM
Authorized User
 
Join Date: Oct 2006
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm having the same problem with my crystal report. Did you end up getting it fixed and what exactly did you do? I looked at the linked that was given but it was sort of confusing for me.

 
Old January 4th, 2007, 03:38 PM
Authorized User
 
Join Date: Oct 2006
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind, I got it working. Thanks David! I did exactly what you told me and it worked.

 
Old January 4th, 2007, 03:57 PM
Registered User
 
Join Date: Apr 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for the complexity; it's an unfortunate byproduct of the way ViewState works with the Page events, Init and Load...

David






Similar Threads
Thread Thread Starter Forum Replies Last Post
navigation does not work web4all ASP.NET 1.0 and 1.1 Basics 1 February 28th, 2006 01:17 AM
Crystal report on ASPX Page anubhav.kumar ASP.NET 1.0 and 1.1 Basics 2 April 30th, 2005 02:37 AM
Page numbering in crystal report 9.0 rajeshnerenki Crystal Reports 2 December 10th, 2004 11:29 AM
Page Break In Crystal Report Lost_Found BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 November 25th, 2004 01:05 AM
Crystal Report 9.0 Page numbering rajeshnerenki Crystal Reports 0 June 23rd, 2004 01:51 PM





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