![]() Presumably some of the RTF data format used is not supported by the RichTextBox/FlowDocument? Is there a way to determine what the unrecognized structure in question?Īre we taking the right approach? Is there an alternative to importing HTML into a RichTextBox that we are unaware of using the component? Unrecognized structure in data format 'Rich Text Format'. But the main concern is with the following error where the RTF failed to be loaded into the FlowDocument. We are seeing varying degree of success and fidelity. Using (FileStream stream = new FileStream(path2Rtf, FileMode.Open)) Load the RTF stream into FlowDocument. ![]() Using (Stream fs = File.Open(path2Html, FileMode.Open))Ī doc = new (fs, options) ĭoc.Save(path2Rtf, ) We use the following roundabout way to convert HTML to RTF, then load the RTF into the FlowDocument associated with the RichTextBox: The document flow we are using is as follow: ![]() The RichTextBox is part of a WPF application, and the intent is to render HTML content, as well as the ability to subsequently modify the content via the RichTextBox. We are seeing issues with loading RTF generated by into a.
0 Comments
Leave a Reply. |