The following code will throw an exception indicating "Dir not found". It seems that while importing from a string, RadRichTextBox will need to access a certain folder that does not exist.
In my project, I need to serialize the content(The content might contain some InlineUIContainer which includes a TextBlock) of the RichTextBox into the OpenXml format and unserialize it back, could you please provide any better solutions?
In my project, I need to serialize the content(The content might contain some InlineUIContainer which includes a TextBlock) of the RichTextBox into the OpenXml format and unserialize it back, could you please provide any better solutions?
public static RadDocument ImportFromString(string content){ var provider = new DocxFormatProvider(); var stream = new MemoryStream(); var sw = new StreamWriter(stream); sw.Write(content); return provider.Import(stream);}