C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




passing parameter in report services


Posted Date: 05 Sep 2008      Total Responses: 2

Posted By: Frank Malola       Member Level: Gold     Points: 1



Hi,

I am using VS2008 and would like to pass paramters to a report that i have created in report services.

please help me.

Regards,
Gundi





Responses

Author: Avadhesh Kumar Tiwari    05 Sep 2008Member Level: SilverRating:     Points: 3

using CrystalDecisions.Shared;

The code of below needs to be written after the ReportSource porperty of the crystalReportViewer has been set and before the control to which belongs finishes being loaded.In this case, we are adding two parameters

ParameterField f1 = this.crystalReportViewer1.ParameterFieldInfo[0];
ParameterField f2 = this.crystalReportViewer1.ParameterFieldInfo[1];
ParameterDiscreteValue pdv1 = new ParameterDiscreteValue();
ParameterDiscreteValue pdv2 = new ParameterDiscreteValue();
pdv1.Value = "parameter1";
pdv2.Value = "parameter2";
f1.CurrentValues.Add(pdv1);
f2.CurrentValues.Add(pdv2);

hope this will help you ...




Author: Frank Malola    05 Sep 2008Member Level: GoldRating:     Points: 1

Hi,

I am not using Crystal Report but Microsoft reporting service, would this code still work?



Post Reply
You must Sign In to post a response.
Next : How to Lock My Registry Key Value in Windows Registry
Previous : DBF(Foxpro database) to MS access(MDB) file converted
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use