Click here to Skip to main content
12,882,639 members (39,823 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# Microsoft
I want to know, how can i use variable in .rdlc report (Microsoft reporting).

Best Regard,
Theingi Win
Posted 8-Mar-11 20:06pm
Updated 8-Mar-11 20:10pm
Sandeep Mewara 9-Mar-11 2:20am
By variable you mean parameters?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

AFAIK, variable is parameters in SSRS.

In design mode, you can go to Report Properties at the top and then add them.
At runtime, if needed, you can have a look at similar discussion here[^].

Once you have it in your report, you can access it using Parameters object. (Ex: =Parameters!Title.value)
Theingi Win 9-Mar-11 2:31am
Thanks Reply For Sandeep Mewara ,
But i want to know variable,not parameters.

Theingi Win
Sandeep Mewara 9-Mar-11 3:02am
I just verified. They are Parameters in 2005 & variables in 2008. Same thing. Try.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Go to Report click Code and create a Function
then call the Function in Expression

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 1 Sep 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100