Problem: LabVIEW does not have native support for the Rich Text File format. How can I use data contained within a .rtf file in LabVIEW?
Solution: If data is contained within a Rich Text File, it can be used by implementing a Rich Text Box and then using the Text property of that control. To do this:
Open the Controls palette.
Select .NET & ActiveX?RichTextBox and place it on the Front Panel.
Select Modern?String & Path?String Indicator and place it on the Front Panel.
Switch to the Block Diagram.
Right click the RichTextBox and select Create?Method for System.Windows.Forms.RichText Box Class?LoadFile(String path) and place it on the Block Diagram.
Right click the RichTextBox and select Create?Property for System.Windows.Forms.RichTextBox Class?Text and place it on the Block Diagram.
Open the Functions palette and select Connectvivity?.NET?Close Reference and place on the Block Diagram.
Open the Functions palette
Select Programming?Dialog & User Interface?Simple Error Handler and place on the Block Diagram.
Select Programming?File I/O?Adv File Functions?File Dialog and place on the Block Diagram.
Select Programming?File I/O?Adv File Functions?Path to String and place on the Block Diagram.