Print Page | Close Window

Passing Parameters in ASP.NET

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Writing Code
Forum Discription: .NET programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1767
Printed Date: 03 May 2025 at 8:27pm


Topic: Passing Parameters in ASP.NET
Posted By: SunDevilPrgmr
Subject: Passing Parameters in ASP.NET
Date Posted: 27 Nov 2007 at 7:19am

I have a report created using Crystal ReportsXI named MyNewReport.  This was created using an Oracle Stored Procedure with input parameters in the SProc.  I need to programmatically create the user interface to enable the user to input the parameter value.  I am trying to follow the book's instructions...(Crystal Reports .NET Programming, Chapter 16, Page 328, Listing 16-2)  The sample code in the book goes as follows: 

'Use the ReportDocument object to create two default parameters. 
Dim MyReport as new CrystalReport1()
Dim ParameterFieldDefinition as _ CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition
..
...
ParameterFieldDefinition = MyReport.DataDefinition.ParameterFields.Item("Location")
...
...
 
The bolded objects are where I am having a problem.
 
1.  My Intellisense does not bring up CrystalReport1. 
2.  The program does not recognize ParameterFieldDefinition object, despite declaring it earlier.
 
Also, I take it that it is not necessary to use parameter options in th ereport (CrystalReportsXI) in order to programmatically assign this for user interaction.
 
Please help.  The fact that that this problem starts right in the beginning of the object reference (CrystalReport1()), I am stuck even going any further.
 
Thanks,
 
SunDevil



Print Page | Close Window