Click here to Skip to main content
Rate this: bad
good
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 21:06pm
Edited 8-Mar-11 21:10pm
v2
Comments
Sandeep Mewara at 9-Mar-11 2:20am
   
By variable you mean parameters?
Rate this: bad
good
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)
  Permalink  
Comments
Theingi Win at 9-Mar-11 2:31am
   
Thanks Reply For Sandeep Mewara ,
But i want to know variable,not parameters.
 
Theingi Win
Sandeep Mewara at 9-Mar-11 3:02am
   
I just verified. They are Parameters in 2005 & variables in 2008. Same thing. Try.
Rate this: bad
good
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
  Permalink  

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

  Print Answers RSS
0 DamithSL 320
1 OriginalGriff 155
2 Peter Leow 115
3 Afzaal Ahmad Zeeshan 114
4 deepakdynamite 110
0 OriginalGriff 7,510
1 DamithSL 5,519
2 Sergey Alexandrovich Kryukov 4,994
3 Maciej Los 4,936
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 1 Sep 2014
Copyright © CodeProject, 1999-2014
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