Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 17 NOV 2003 12:26:07PM Wilhelm Schmitt wrote:

Is it possible to tell OIPI to use a certain background color for every other row?

Any suggestions welcome.

Wilhelm


At 17 NOV 2003 12:26PM Tony Splaver wrote:

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


At 17 NOV 2003 12:26PM Wilhelm Schmitt wrote:

Thanks, Tony.

Looks good.

-Wilhelm-

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/d4da8da442915ad685256de1005fc666.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1