LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No underline in text file

I'm writing a string of underlined text into a *.txt file. But when I pull up the text file (in Notepad), the text is not underlined. Is it my code? Or is it Notepad? Or can you not send underlined text into a file?
********************************************
Amateur programmer for over 10 years!
********************************************
0 Kudos
Message 1 of 4
(3,613 Views)
Notepad does not support underlining of text. It is very limited in its text formating, I believe it only supports bold and italics. Try it with WordPad or MS Word. Even then, I am not sure how to pass formating features.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(3,606 Views)
what is the vi you are using ?
wrting string to a text file will simply save data as pure text, ascii characters, without formatting.
what you are trying to save is formatted on the screen, but when saved to a text file, all the formating (italic, bold, etc ) is lost.

If you want to save formmatted text, you have to use a word processor, like word pad. you can have LabView thru active X save formatted text with word pad.

notepad is a pure text editor
0 Kudos
Message 3 of 4
(3,600 Views)
I beleive that the string control only passess ASCII characters when saving to file, and does not include formatting information.
Perhaps you could try using the Report Generation Toolkit?
0 Kudos
Message 4 of 4
(3,598 Views)