Rich Text Editor > Loading and Saving Documents > Rich Text Format (RTF) |
NOV rich text view lets you easily load and save document to the Rich Text Format (RTF).
To load a Rich Text Format document from a file or from a stream you can use the Load methods of the rich text view as shown in the Loading Documents topic.
Loading a Word Document |
Copy Code
|
---|---|
richTextView.LoadFromFile(@"C:\MyDocument.rtf");
|
To save a document to a Rich Text Format file or stream you can use the Save method of the rich text view as shown in the Saving Documents topic.
Saving a Word Document |
Copy Code
|
---|---|
richTextView.SaveToFile(@"C:\MyDocument.rtf");
|