This is a migrated thread and some comments may be shown as answers.

Underline issue with Tables and PDF Export

2 Answers 149 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 04 Sep 2013, 06:56 AM
Hi,

I've run into an issue with underlining a text span that is in a table cell. When I create the content of the cell by doing the following:
row = New TableRow
cell = New TableCell()
p = New Paragraph()
sp = New Span()
sp.Text = "Benefit Start"
sp.UnderlineType = UI.UnderlineType.Line
p.Inlines.Add(sp)
row.Cells.Add(cell)
table.Rows.Add(row)

The underline extends past the final character. See the attached 'underlineissue_richtextbox.jpg' for an example, this jpg also shows the same text/paragraph added to the section outside of a table and it works fine.

The problem is even worse when I export the document to a PDF as all the underlines are too wide. See the second attachment for an example.

Is there a work around for this issue or am I doing something wrong?

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 09 Sep 2013, 08:27 AM
Hello Rob,

Thank you for contacting us.

I was able to reproduce the issues you are describing. I have logged them in our Public Issue Tracking System you can find them on this addresses - FIX. RadRichTextBox - Incorrect underlining when exporting to pdfFIX. RadRichTextBox - Not correct underlining in a table. Feel free to add your votes and comments or subscribe for changes. 

Unfortunately, I can not provide you with a workaround for the time being. I hope that this is not a showstopper for you.

I have also updated your Telerik Points for bringing this to our attention.

If you have any other questions or comments, please let me know. 

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Rob
Top achievements
Rank 1
answered on 09 Sep 2013, 11:17 PM
Thanks for the response George.

It's for an internal document so not a showstopper for us.

Cheers,

Rob
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Rob
Top achievements
Rank 1
Answers by
George
Telerik team
Rob
Top achievements
Rank 1
Share this question
or