LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ni Reports

How can I change the fonts color of only a part of the text I'm printing
with NI Reports? Is it possible?
It seems very limited.
0 Kudos
Message 1 of 3
(3,179 Views)
The way I you do this is to divide your text up and change the color for the
section that you would like to have in color.

Your diagram would be something like :

. . . Set Report Font.vi (set the color; ie BLACK)
Append Report Text.vi (the text in that color)
Set Report Font.vi (set the new color; ie RED)
Append Report Text.vi (the text in the new color)
Set Report Font.vi (Set the color back to origional; ie BLACK)
. . .

I hope that this helps,
Bob Young


"Forfello" wrote:
>How can I change the fonts color of only a part of the text I'm printing
with NI Reports? Is it possible? It seems very limited.>>
0 Kudos
Message 2 of 3
(3,179 Views)
> How can I change the fonts color of only a part of the text I'm printing
> with NI Reports? Is it possible?
> It seems very limited.

You will want to treat it a bit like a printer stream. Setup the font,
send it text, then change the font, send text, etc. I believe the font
stuff lets you change just a portion of the style attributes, but if not,
read it, change bold or whatever you want to, and write all of them back.

Greg McKaskle
0 Kudos
Message 3 of 3
(3,179 Views)