Conditional formatting in RTF template - Some attribute works some not
To change background color of the alternate rows I am using following code
<?if@row:number(position() mod 2)=0?><?attribute@incontext:background-color;#d9d9d9?>
Does not work, background color remains unchanged.
Whereas <?if@row:number(position() mod 2)=0?><?attribute@incontext:color;'red'?><?end if?>
do work. Font color is turns red in the alternate rows.
Same thing happens when I wish to set the last row of the report to have bottom border solid .5pt
<?if@row:number(position)=number(last())?><?attribute@incontext:color;'red'?><?end if?>
works, but
<?if@row:number(position())=number(last())?><?attribute@incontext:border-bottom-style;'solid'?><?attribute@incontext:border-bottom-width;.5pt?>?end if?>
does not!!
0
Answers
-
Please do not double post
0
This discussion has been closed.