Sarah83 Posted May 19, 2005 Report Share Posted May 19, 2005 Hi! If I set the color with a color constant in "set report font.vi" I always get a black text in the report (HTML). I used an example but I had the same problem. Is this a display problem? (open report with ie) Quote Link to comment
Kurt Friday Posted May 20, 2005 Report Share Posted May 20, 2005 Hi Sarah I just tried the following code and I was able to set the HTML report font color correctly. Quote Link to comment
Sarah83 Posted May 20, 2005 Author Report Share Posted May 20, 2005 Hi SarahI just tried the following code and I was able to set the HTML report font color correctly. 4803[/snapback] OK, but try this out with append table to report :headbang: Quote Link to comment
Mikrobi Posted May 20, 2005 Report Share Posted May 20, 2005 OK, but try this out with append table to report :headbang: 4804[/snapback] What about append table as classic LabVIEW table picture ? "Append Control Image to Report.vi" could get control picture by it's references. So Table could be formatted, (color, etc) by Property Nodes and looks like at VI. Quote Link to comment
Barrie Posted May 20, 2005 Report Share Posted May 20, 2005 OK, but try this out with append table to report :headbang: 4804[/snapback] Hello Sarah: The NIReports VIs are a limited (but very useful) implementation of HTML. Text has a font and a colour, tables have a whole different series of "tags" or attributes that can be applied. If you look at "append table" subVI, there is no input for fonts or colours. WYSIWYG. (What you see is what you get). If you wish to further modify the table, then you need to expand the capabilites of the table function. It's not as scary as it sounds. Of the many objects in HTML, most of them have many tags that allow you to change things as you like, just like methods and properties in LV, but with even more variations, and they are all text, bounded by <tag>. A lot of NI reports just assembles and concatenates HTML strings based on the inout values. HTML is found in more and more places. Learning about it is worthwhile. I would recommend that you invest in a book on HTML 4.0. The 'net is also a good source (as always). If you just want to modify a table, this site is a pretty good starting point for advanced functions, although I am sure there are many others. http://www.mountaindragon.com/html/tables2.htm. Gut Gluck! Barrie Quote Link to comment
Benoit Posted January 14, 2016 Report Share Posted January 14, 2016 For those who are looking for an easy solution with a vi, see the one I made... This VI is at version 1.0.0.0 and support only equals size of column and single line of text, but still might respond to all your need. https://lavag.org/files/file/279-html-color-table/ Benoit Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.