Hi all !
I have a string RTF
RTF string :
txt.zip (1.7 KB)
Display RichTextBox
rich.jpg (52.1 KB)
But when i load to word
2.jpg (43.9 KB)
My code :
UTF8Encoding encoding = new UTF8Encoding(); MemoryStream stream = new MemoryStream(encoding.GetBytes(rtfString)); LoadOptions loadOptions = new LoadOptions(); loadOptions.LoadFormat = LoadFormat.Rtf; Aspose.Words.Document rtfDoc = new Aspose.Words.Document(stream,loadOptions); rtfDoc.Save(PATH);
Thank for reading .