Completed
Last Updated: 31 Oct 2018 07:54 by ADMIN
ADMIN
Tanya
Created on: 25 Aug 2016 12:34
Category: RichTextBox
Type: Bug Report
2
RichTextBox: IndexOutOfRangeException is thrown when exporting list level without level text to PDF
When the LevelText of the list style is empty, PdfFormatProvider throws an IndexOutOfRangeException while trying to draw the bullet.

Workaround: Ensure that the LevelText of the ListItemStyle is not an empty string:

foreach (ListStyle listStyle in this.radRichTextBox.Document.ListManager.GetAllListStyles())
{
    foreach (ListLevelStyle level in listStyle.Levels)
    {
        if (string.IsNullOrEmpty(level.LevelText))
        {
            level.LevelText = " ";
        }
    }
}
1 comment
ADMIN
Aylin
Posted on: 03 Oct 2016 10:08
Hi,

The issue is fixed and will be available in today's LIB release (v.2016.3.1003)

Regards,
Aylin,
The Telerik Team