06-29-2011 10:08 AM
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.
06-29-2011 11:58 AM
I use this to iterate through my table and change the font color for any failed steps:
This is the sub-VI (fontsize.vi - I downloaded it here, somewhere):
07-01-2011 09:32 AM
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.
07-06-2011 03:48 PM
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!
07-07-2011 12:05 PM
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