Completed
Last Updated: 24 Nov 2014 09:37 by ADMIN
ADMIN
Dimitar
Created on: 22 Aug 2014 13:00
Category: RichTextBox (obsolete)
Type: Bug Report
0
FIX. RadRichTextBox the rtf format provider throws an exception when single list is exported.
To reproduce use the following code:

TxtFormatProvider txtProv = new TxtFormatProvider();
radRichTextBox1.Document = txtProv.Import("Ein erster Text");

radRichTextBox1.ChangeListStyle(DefaultListStyles.Numbered);

ListLevelStyle style = new ListLevelStyle();
style.FontFamily = "Segoe UI";
style.NumberingFormat = ListNumberingFormat.Decimal;

RtfFormatProvider rtfProv = new RtfFormatProvider();
string txtRtf = rtfProv.Export(radRichTextBox1.Document);

Workaround:

radRichTextBox1.Document = txtProv.Import("Ein erster Text");
ListStyle style = new ListStyle();
style.Levels.Add(new ListLevelStyle() { FontFamily = "Segoe UI", NumberingFormat = ListNumberingFormat.Decimal, LevelText = "1"});

radRichTextBox1.ChangeListStyle(style);

Resolution: 

This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox. 

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments