Jump to content

Problems with set color


Recommended Posts

Posted

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)

Posted
Hi Sarah

I just tried the following code and I was able to set the HTML report font color correctly.

post-1058-1116567486.jpg?width=400

4803[/snapback]

OK, but try this out with append table to report :headbang:

Posted
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.

Posted
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

  • 10 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.