How to save RichTextBox to Word

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 .

@sakafaracsc

Thanks for your inquiry. We have reproduced and logged ticket WORDSNET-16260 against your reported issue for further investigation and resolution. We will notify you as soon as this issue is resolved or we have any further information to share with you. We are sorry for the inconvenience.

1 Like