on 2016 Oct 18 4:41 PM
If you need the colored rows on a printed report you have to select "Print Shows Background" in datawindows print properties.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you do it in code like AV said or directly in the DataWindow like I suggested, you have to make sure all the objects on the detail band are using Transparent for Background Color.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the following for the detail band Color computed value:
if ( mod(getrow(),2) = 0, 536870912, 65535 )
In this example, 536870912 is Transparent and 65535 is Yellow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume you mean to change the background color of the row. Use this code to set background color for alternate rows:
dw_1.Modify("datawindow.detail.Color='0~tIf(mod(getrow(),2)=0,134217728,553648127)'")
,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.