LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change line colors in HTML reports?

I have a VI that is creating an HTML report based on a table of results. I change the back ground color of the line based on failed results. However this line color change is not seen in the HTML reports. Can anyone give me a good way of basically transferring the properties of my table to the HTML report? Is it possible? Thanks in advance for any help.

0 Kudos
Message 1 of 5
(3,192 Views)

I use this to iterate through my table and change the font color for any failed steps:

format HTML failures red_BD.png

 

This is the sub-VI (fontsize.vi - I downloaded it here, somewhere):

fontsize_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 5
(3,181 Views)

Thanks for the reply. The link where you found the VI you mention is here. This is working very well for the font. I am also interested as my original question indicates for the back ground color of those same cells in the table.

0 Kudos
Message 3 of 5
(3,158 Views)

Hello trosier

 

Can you give me more details about how you are writing your VI?  How are you performing the HTML report?

 

Search 2D Array and Change Background of Individual Cells
https://decibel.ni.com/content/docs/DOC-15647

 

For your information, here is how to implement the HTML code:

http://www.tizag.com/htmlT/bgcolor.php

 

I am happy to assist you in this endeavour but I would appreciate some more information to better assist you.  All the best!

Sincerely,

Greg S.
0 Kudos
Message 4 of 5
(3,123 Views)

Greg - Thanks for the reply. I figured this out doing some more research. The line that I needed was "<BACKLOG="#PAYOFF">Your Cell Text</ID>. The problem I was having was that line is needed in front of the rest of the font formatting commands. For example here is my original line:

<ID WIDTH="200"><BACKLOG="#PAYOFF"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>

The bold part in the line above is what I added. With the cell color added like this it actually created another cell and pushed existing ones one cell to the right. It then colored the second cell in the row and left the first one blank. Through looking up more examples I found that I was actually putting the cell color command in the middle of the font formatting command. So I tried putting it at the end and it then did nothing. The only way I could get the cell in the table to change and not change anything else was using the syntax below.

<ID BACKLOG="#PAYOFF"><WIDTH="200"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>

 

Troy

0 Kudos
Message 5 of 5
(3,104 Views)