Saving contents to file with formatting details in VB.NET
-
12-12-2019 - |
문제
I am working on a VB.NET project that retrieves data from the specified database and saves the result into a file with a unique extension (viz. *.vcs). The thing that troubles me is that I need to save the data with user defined formatting (e.g. font color, font size, etc) so that he finds it in the same format when he accesses the file again in future. Any suggestion as to how can this be done?
해결책
You can use RichTextBox control to save (RichTextBox.SaveFile()
) and load (RichTextBox.LoadFile()
) content in RTF format.
제휴하지 않습니다 StackOverflow