The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Passing parameters to Crystal Reports at runtime with c#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

WatcharakornPosted May 27, 2011, 7:40 AM
I will test it, thanks.
rahul upadhyayPosted Mar 21, 2011, 9:02 AM
It's code is not run Success fully. pls help me. i want to pass parameter with c# in Crystal report.
deepa eswaranPosted Oct 24, 2008, 8:32 AM
hi all, ive used a parameter feild info property in my crystal report but even though for some records it is showing an error page with this (ParameterList - Use the ParameterFieldInfo property to specify parameter fields.) comment. but its working with other records. following is a sample of my code. reportDoc.SetDataSource(dsExample.Tables[0]); crvHAWBReport.RefreshReport(); ParameterFields paramFields = reportDoc.ParameterFields; paramFields["param"].DefaultValues.AddValue(dsAIR.Tables[0].Rows[0]["value1"].ToString()); paramFields["param"].DefaultValues.AddValue(dsAIR.Tables[0].Rows[0]["value2"].ToString()); paramFields["param"].DefaultValues.AddValue(dsAIR.Tables[0].Rows[0]["value3"].ToString()); paramFields["param"].DefaultValues.AddValue(dsAIR.Tables[0].Rows[0]["value4"].ToString()); crvHAWBReport.ParameterFieldInfo = paramFields; crvHAWBReport.ReportSource = reportDoc; crvHAWBReport.DataBind(); Page.DataBind(); pls can anyone suggest me a solution . deepa
dhirendra yadavPosted Oct 1, 2008, 7:15 AM
error is line pfItemYr.ParameterFieldName = "year"; //year is Crystal Report Parameter name.
Rajendra DeopuraeditedPosted Sep 30, 2008, 10:09 AMEdited Sep 30, 2008, 10:10 AM
Please specify how to add crystal report parameter "year"