LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set report font html

I can't seem to set the font size for the data table portion of an HTML report using the "set report font.vi". I doesn't matter where I put the "set report font.vi". The only thing I seem to be able to change is the font type. Any other font options are ignored -- at least as far as the data sent to the "append table to report.vi" is concerned.

Here's a little test program:
0 Kudos
Message 1 of 2
(3,181 Views)
wawatts,

I think font changes are ignored with HTML reports, so you are probably seeing the expected behavior. The help for the Set Report Font VI does mention up front that font settings source is ignored, but I think it could do a better job of explaining what that implies.

One of the NI AEs wrote an example (Setting Font Size and Color in HTML Text Tables) that demonstrates how to control HTML table fonts by embedding font information in the table cells themselves along with the data.

A more elegant solution would be to define a stylesheet to define the default font for table cells, but there's no built-in support for that, so you'd have to write your HTML to file and parse it to make it happen. Try the example and see if it does the trick.

Regards,
John
Message 2 of 2
(3,170 Views)