LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control background color of table cell in an html report?

I am using Labview 6.1 to generate a report.  In that report there is a table created using the Append Numeric Table to Report VI.  I want to be able to programmatically control the background color of each cell in the table.  Also, how can I programmatically control the background color of the row and header cells of the same table.  I am also generating a second table in the same report using the Append Text Table to Report VI and I would like to programmatically control the background colors of the cells in that table as well.  Thanks.
0 Kudos
Message 1 of 3
(3,684 Views)

Hi epsilon-d...,

i´m not sure if there is an ready to use function to do what you want, but you can enlarge the available function. Open the "Append Numeric Table to Report.vi" and go to the HTML Case. There you can see another vi which creates the html table. In the VI "HTML Report Table Row" you can add the option: bgcolor="your color" inside of the "TR" tag.

 

Hope it helps.

Mike

Message 2 of 3
(3,683 Views)
0 Kudos
Message 3 of 3
(3,038 Views)