Unplanned
Last Updated: 02 Jun 2025 06:36 by Daniel
Daniel
Created on: 02 Jun 2025 06:36
Category: RichTextBox
Type: Bug Report
0
RichTextBox: Document exported to DOCX with 2025 Q2 cannot be opened by 2025 Q1

Document exported to DOCX with 2025 Q2 cannot be opened by 2025 Q1 or previous versions.

 

Workaround: Use document processing to fix the document.

var processing_provider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();

var document = processing_provider.Import(File.ReadAllBytes("C:\\Users\\test\\Downloads\\word1.docx"),null);
var bytes_ = processing_provider.Export(document, null);

var rtb_provider = new Telerik.Windows.Documents.FormatProviders.OpenXml.Docx.DocxFormatProvider();
var doc = rtb_provider.Import(bytes_);
radRichTextBox.Document = doc;

0 comments