LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

font setting for textfile for printing

Hi Iam have a print V.i ( Develped in L.V 7), where the data is data is logged in a txt file & then sent to a printer,by default the fonts are set to Arial size 13, iam not able to reduce the font from 13 to 10 size. by using the font setting icon, it displays font setting not found. Can u plz help me in correcting this .
Thanx & Hav a nice Day.

Suresh
0 Kudos
Message 1 of 4
(3,032 Views)
If I understand correctly, you are storing the data in a text file, right?

What application do you use to print the text data? If other than LV, you should be able to set the font size..

If using LV and printing directly from the running vi, you can try the following.

At some point in the vi, you may display the text as an indicator and call it something (ex: data_tobe_printed)

Right click the indicator and select Create > Property Node.

Use the finger pointer and click on the newly created property node. Select => Text => Font => Size

Change the property node to Write (right-click select "Change to Write") and wire the number 10 to it.

You can also do the same to choose another font type, etc.

Hope this helped.

JLV
Message 2 of 4
(3,032 Views)
Hi JLV
Thanx for the reply. yes iam storing the data in a text file & sending it to an printer.
Had created the property node & selected the font type & size,changes takes place only in the front panel not in text file ( it remains the same no change) is there any other settings for the text fie.
0 Kudos
Message 3 of 4
(3,032 Views)
Hi Suresh,

There are a couple options to consider here:

1. If you have any flavor of LabVIEW other than the Base package, then there is a "Set Report Font.vi" that will allow you to change the various font settings programmatically, including the size.

2. You can create a Word document and then use the ActiveX controls to set the font properties.

Hope this gives you some ideas. Good luck! 🙂

Kileen C.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,032 Views)