Click here to Skip to main content
15,885,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know, how can i use variable in .rdlc report (Microsoft reporting).

Best Regard,
Theingi Win
Posted
Updated 8-Mar-11 20:10pm
v2
Comments
Sandeep Mewara 9-Mar-11 2:20am    
By variable you mean parameters?

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)
 
Share this answer
 
Comments
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.
Go to Report click Code and create a Function
then call the Function in Expression
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900