By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,680 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,680 IT Pros & Developers. It's quick & easy.

Passing Parameter in Crystal Report using C#.Net

P: 1
hi

I am working in C#.Net 2005.
I want the whole code for Passing Parameter in Crystal report
Please send it fast
It's very urgent

with regards,
Anushree
Sep 4 '06 #1
Share this Question
Share on Google+
1 Reply


P: 14
hi

I am working in C#.Net 2005.
I want the whole code for Passing Parameter in Crystal report
Please send it fast
It's very urgent

with regards,
Anushree
Hi

You can write the code as below to pass the parameters.

oReportDocument = new rptSample();
oReportDocument.SetParameterValue("ParameterName", DateValue);

and then open the report rptSample, Open 'Field Explorer' and in that right click on the 'Parameter Fields' and click on the 'New'. It will open the new window 'Create Parameter Field' , in the name field write "ParameterName" and select value type "Date".

That's all.

-Ankit
Sep 15 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.