I have tried this thru both custom code and just thru a simple iif statement both which produce errors. I put the following iif statemnt in
=iif(Fields!change_type.value="Test","Cyan","Red")
and get the following error:
c:\variset4\reports_microsoft\ToolPredByOp.rdl The background color expression for the textbox 'CHANGE_TYPE' refers to the field 'change_type'. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.
Any suggestions?disregard my last message - my line was correct - the problem was that Reporting services is Case sensitive. I should have had my field names in all caps. I found a good ei was trying to do at:
http://www.sqlservercentral.com/columnists/bknight/reportingservicesconditionalformatting.asp
if anyone is interested...|||
Hi.....
May be ur Prblm is Caps letter..or U Can also try Like this....
=iif(Fields!change_type.value="Test","Cyan","Red")
As
use ur Text Box Name instead of Field value.... ok write this Code in BackGround -- <Expression...>
=iif(ReportItems!textbox1.value="Test","Cyan","Red")
Best Regards......
No comments:
Post a Comment