LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you change fonts in an HTML report?

Hello all,

I need to create a report from a test that I've written, and my only feasible option is HTML. Unfortunately, I know next to nothing about HTML, so I'm using the LabView VI's to build the report.

In the attached VI, I've written a program that simply plops a couple lines of text down and saves it in the HTML format. The color, font style, font type all seem to work fine, and when I change them I see the changes reflected in the HTML document. The size, however, doesn't change.

What I need to do is have the ability to have different lines of text be different sizes, or even 1 word in a sentence be a different size.

How do I do this?

What am I doing wrong?

Any help would be greatly app
reciated!

Dave Neumann
d.neumann@astronautics.com
Download All
0 Kudos
Message 1 of 3
(2,950 Views)
Dear Dave,

The setting of the size is working but your parameters are inadequate for a HTML document.
The reporting VIs are generating HTML which is decrepated. It generates a FONT tag with a size attribute with "30pt" and "10pt" as you have set in the Set Report Font parameters. The HTML standard allows only values of "1" to "7". The standard works with relative sizes so a "pt" does not apply to it. "1" is the smallest size and the actual displayed size depends on the setting of the browser. In MS IE you can set it under View>>Size to one of five degrees.
If you would use "5" and "7" instead of "10pt" and "30pt" you will see the text in different size.
Your values are coerced to 7. That's why you see something you didn't expected.

Unfortunatly
I have no experience with the reporting VIs. I'm not sure if they can use the style sheet formatting which will allow font sizes measured in points.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 3
(2,950 Views)
Waldemar,

Thank you so much for your response!

I knew there was something silly I was doing wrong, but I just couldn't figure it out.

Thanks again, you've saved me a bunch of time!

Dave Neumann
0 Kudos
Message 3 of 3
(2,950 Views)