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 April 5th, 2006, 11:48 PM
Registered User
 
Join Date: Mar 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default crystalReportviewer unable to detect crystalparame

hi ,

This is geeta.
I have passed command in report that is

select * from product where 'productId' = ' {?prodId}'

also i have created a parameter prodId from field exploder.

My asp.net coding is attached with mail
where error occur in the following positions

private void prepareReport()
{
string strExportFile= Server.MapPath(".") + "/CrystalReport3.xls";
crReportDocument.Load(Server.MapPath("CrystalRepor t3.rpt"));
CrystalReportViewer1.ReportSource = report;
crParameterFields= CrystalReportViewer1.ParameterFieldInfo;
Response.Write(crParameterFields.Count);
crParameterField = crParameterFields["@prodId"];
            **********main error :: index out of bound as
            **********crParameterFields.count=0
crParameterValues = crParameterField.get_CurrentValues();

            **********Can not explicitly call operator & Accesser
crParameterDiscreteValue.Value=5;
crParameterValues.Add(crParameterDiscreteValue);
crParameterValues.Add(crParameterDiscreteValue);
CrystalReportViewer1.ParameterFieldInfo =crParameterFields;
}

please solve this problem as early as possible,


geeta








Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging in CrystalReportViewer rakeshvc Crystal Reports 1 May 19th, 2014 06:18 AM
mousewheel on crystalreportviewer SabinoFonseca VB.NET 2002/2003 Basics 1 October 10th, 2007 12:34 PM
There is no toolbar in crystalreportviewer basith7861 VB.NET 2002/2003 Basics 1 May 1st, 2007 10:24 PM
crystalreportviewer and paging vinki Crystal Reports 0 December 10th, 2004 08:32 PM
Unable to detect internal modem management_guru Linux 4 March 27th, 2004 12:49 PM





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