C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

passing parameter in report services


Posted Date: 05 Sep 2008      Posted By: Frank Malola      Member Level: Gold     Points: 1   Responses: 2



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: 3 out of 53 out of 53 out of 5     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: 1 out of 5     Points: 1

Hi,

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



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


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

About Us    Contact Us    Privacy Policy    Terms Of Use