Underline issue with Tables and PDF Export

3 posts, 1 answers
  1. Rob
    Rob avatar
    9 posts
    Member since:
    Nov 2012

    Posted 04 Sep 2013 Link to this post

    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. Answer
    George
    Admin
    George avatar
    500 posts

    Posted 09 Sep 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Rob
    Rob avatar
    9 posts
    Member since:
    Nov 2012

    Posted 09 Sep 2013 Link to this post

    Thanks for the response George.

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

    Cheers,

    Rob
Back to Top