Completed
Last Updated: 02 Nov 2023 16:38 by ADMIN
Release LIB 2023.3.1106 (6 Nov 2023)
Martin Ivanov
Created on: 23 Aug 2023 16:10
Category: RichTextBox
Type: Bug Report
1
RichTextBox: MergeField is displayed wrong in MS Word when the documented is export to docx and DocxExportSettings FieldResultMode is set to DisplayName

In this case, the MergeField Code value without the brackets gets concatenated before the display name of the MergeField in the document. 

This reproduces after the document get exported and the DocxExportSettings' FieldResultMode property is set to FieldDisplayMode.DisplayName.

The MergeField is displayed correctly in RadRichTextBox. The issue occurs only when the document is displayed in MS Word.

To work this around, set the DocxExportSettings FieldResultMode value to null.

DocxFormatProvider docxFormatProvider = new DocxFormatProvider() 
{
	ExportSettings = new DocxExportSettings() 
	{
		FieldResultMode = null
	} 
};

0 comments