C# reportview 按时间改变行颜色

//BackGroundColor表达式中填写:
=IIf((Month(Now()) - Month("2017/7/1") = 0) AND ((Day(Now()) - Day("2017/7/1") >= -3) AND (Day(Now()) - Day("2017/7/1") < 0)),"Yellow",IIf(((Month(Now()) - Month("2017/7/1") = 0) AND (Day(Now()) - Day("2017/7/1") > 0)) OR (Month(Now()) - Month("2017/7/7") > 0),"Red",""))

 

posted @ 2017-07-04 16:12  longdb  阅读(395)  评论(0编辑  收藏  举报