Solved

Urgent:Crystal not showing data at second page( Nagvigation button)

Posted on 2004-04-08
7
176 Views
Last Modified: 2012-06-27
Greetings,

I use CR viewer to show the web report. I have 2 pages, say 1.aspx & 2.aspx. 1.aspx ask the user to pick up the field name then call 2.aspx, 2.aspx pass the parameter and run a sorting then return the report on CR viewer. I only get the report for 1st page. If I click on the 'next' navigation button, I got the following error message:

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

  Source Error:

                    Line 30:             Dim crReport As New CrystalReport3()
                    Line 31:
error here->  Line 32:             pdrnum.Text = Request.Form("pdr").ToString()
                    Line 33:             ' yrnum.Text = Request.Form("yr").ToString()
                    Line 34:             ' campname.Text = Request.Form("campus").ToString()
 
Above code is from Page_Load function. It seems like the page get refresh when I click on 'next' navigation button, and lost the value for Request.Form("pdr").ToString(). How to fix it?

BTW, I display data in 2 rows(for each record)  in detail section of CR.

Thanks in advance.  
0
Comment
Question by:mrong
  • 3
7 Comments
 

Author Comment

by:mrong
ID: 10782926
The number of total pages is 25, but I can only see the first page of report.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 10785865
Are you clicking the WEB Page NEXT or the Crystal NEXT Arrow?

mlmcc
0
 

Author Comment

by:mrong
ID: 10785873
Crystal Report NEXT.

Thanks.
0
 

Author Comment

by:mrong
ID: 10792746
I figured it out.
The 'CrystalReportViewer1.ReportSource=?' need to be put outside of Page_Load function.
 
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 10820530
Closed, 200 points refunded.
Netminder
Site Admin
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now