Unplanned
Last Updated: 10 Jul 2025 21:42 by Daniel
Martin Ivanov
Created on: 10 Jul 2025 11:05
Category: RichTextBox
Type: Bug Report
1
RichTextBox: Exporting documents (RadDocument) to docx format produces an invalid file
Exporting RadDocument to docx format (using the DocxFormatProvider) produces an invalid file. The file is read properly by document viewers like RadRichTextBox or MS Word, but if you open it with "Open XML SDK Productivity Tool for Microsoft Office" or another app that validates documents, the document is treated as invalid.

To work this around, you can import the invalid .docx document using the RadWordsProcessing library (and its RadFlowDocument) and then export it again with RadWordsProcessing.
1 comment
Daniel
Posted on: 10 Jul 2025 21:42

The file exported to docx cannot be reimported by preceding version of the richtextbox.

The workaround doesn't work for us. When using RadFlowDocument, the current implementation of the DocxFormatProvider does not include support for exporting change tracking information (e.g., tracked revisions, insertions, deletions). This means that when you save a document with tracked changes using this provider, the changes will be "finalized" or "accepted" within the DOCX file, and the tracking information will not be preserved.