Approved
Last Updated: 17 Apr 2018 06:14 by ADMIN
ADMIN
Boby
Created on: 17 Apr 2018 06:04
Category: RichTextBox
Type: Bug Report
0
RichTextBox: TableOfContentsField (TOC) is exported to PDF with hyperlink styling
When document with TOC  field is exported to PDF, the hyperlinks in the TOC field are exported with blue fore color and blue underline (with the default hyperlink styling). Instead, they should be exported with the fore color visible in the document.

Workaround: Clear the hyperlink style from the spans inside the TOC:

            var firstTocRange = this.radRichTextBox.Document.EnumerateChildrenOfType<FieldRangeStart>().Where(frs => frs.Field is TableOfContentsField).First();
            this.radRichTextBox.Document.Selection.SelectAnnotationRange(firstTocRange);
            foreach (var spanLayoutBox in this.radRichTextBox.Document.Selection.GetSelectedBoxes<SpanLayoutBox>())
            {
                spanLayoutBox.AssociatedSpan.Style = null;
            }
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments