Is it possible to tell OIPI to use a certain background color for every other row?
Any suggestions welcome.
Wilhelm
I have seen OIPI reports that do this, and I think they use the Append attribute of the ADDTABLE to make it work one row at a time, like this:
Function oipi_test_table_alt(d)
Declare Function Set_Printer, RGB
x=Set_Printer("INIT", "", "", "", "", 4)
backcolor="
backcolor=RGB(192,192,192)
backcolor=RGB(0,0,0)
header=Column 1,Column 2"
table=row 1 col 1,row 1 col 2|row 2 col 1,row 2 col 2|row 3 col 1,row 3 col 2|row 4 col 1,row 4 col 2|row 5 col 1,row 5 col 2"
convert "|" to @FM in table
convert "," to @VM in table
convert "," to @VM in header
* print header with no body yet
x=Set_Printer("ADDTABLE", "2440":@VM:"2880", header, "", RGB(192,128,128), "", "", 7)
For i=1 to 5
x=Set_Printer("ADDTABLE", "2440":@VM:"2880", "", table[i], "", backcolor, 1, 7)Next i
x=Set_Printer("TERM", 1)
return 1
Thanks, Tony.
Looks good.
-Wilhelm-