Victor Charles
asked on
Help with changing text color in MS Report (rdlc)
Hi,
How do you set the text color of a text in a textbox in my report when it equals to a particular value of a textbox on my form? I am using VS2010 SP2. Also if the textbox on my form contains BEL, CAN, USA, how do I change the text color of BEL, CAN or USA in my report?
Victor
How do you set the text color of a text in a textbox in my report when it equals to a particular value of a textbox on my form? I am using VS2010 SP2. Also if the textbox on my form contains BEL, CAN, USA, how do I change the text color of BEL, CAN or USA in my report?
Victor
You can put an equation in the color property that will evaluate to the correct color for the condition for that cell or row.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Thanks for your replies.
In the textbox property of my report, if I have an NSN field
How do I modify
Fields!NSN.value = Textbox1.Text
Where Textbox1.text is the value from the form. I imagine I need a parameter to be able to read the value of the text box right?
How do I modify the code for the textbox property of my report to understand the value of textbox.text on the windows form?
Victor
Thanks for your replies.
In the textbox property of my report, if I have an NSN field
How do I modify
Fields!NSN.value = Textbox1.Text
Where Textbox1.text is the value from the form. I imagine I need a parameter to be able to read the value of the text box right?
How do I modify the code for the textbox property of my report to understand the value of textbox.text on the windows form?
Victor
looking at the line of code:
Fields!NSN.value = Textbox1.Text
i suspect you are working in MS Access, is this correct?
Fields!NSN.value = Textbox1.Text
i suspect you are working in MS Access, is this correct?
The original question was about text color. I think the additional question in post ID:38443709 has nothing to do with that. To avoid confusion it might be better to close this question and post a new question about linking page fields to report parameters.
yes it does seem to be a new question.
ASKER
I am working with XML, will post as a new question.
Thanks.
Thanks.
You have to pass in a parameter form your query to the report.
the report name will be something like...
Parameters!MyName.Value
the report name will be something like...
Parameters!MyName.Value