Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
How can i display the value of a variable in the MS report text box.
I know the code is txtRB =field!vrHeader but I really donot know where to put it, how to use it. Could you kindly tell me steps that I need to take to make it work.


I am really frustrated. A very simple thing in vb6 has been made extremely complicated in vb.net................


Thanks
Furqan
Posted

What I understood from your question is:
You want to show the value of a report parameter in a text in SSRS(Sql Server Reporting Services).

To do this I followed the following steps:
1. Created a text box on report.
2. Added a report parameter.
3. Right clicked on the text box and selected expression from the menu.
4. In "Edit Expression" Window I clicked on Parameter node from bottom left pane.
5. By selecting it all the parameters were showed up in the bottom right pane. I clicked on the parameter I want to show in textbox.

Finally I got the value of the parameter in the text box.

Hope this answer your question.
 
Share this answer
 
Comments
Furqan Sehgal 8-Feb-11 2:56am    
No, I donot want to show the value of parameter. I want to show the value of a public variable defined in module. It contains data after very complicated calculations done in the form that contains report viewer. I want to show the value of this variable in the text box.
Thanks
Furqan
Looks like you totally ignored my reply at other question you asked.

If you need to interact with server to display value runtime, have a look here:
Did you look at this: Localization of SSRS Reports[^]

If you need to do write some code and get a complex caluculation done in report itself (and does not need to interact with server), then try Custom Code option.
Go to Report Properties -> Code -> Write VB code here.
A sample tutorial on how to write and use custom code: Embedded Code In Reporting Services[^]
 
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