How to make underline compatible to Reporting HtmlTextBox?

4 posts, 0 answers
  1. Michael Hilgers
    Michael Hilgers avatar
    76 posts
    Member since:
    Apr 2010

    Posted 20 Jun 2012 Link to this post

    Hi everyone,

    i'm exporting my RadRichTextBox content to a HTML string using the following options:
    HtmlFormatProvider provider = new HtmlFormatProvider();
    provider.ExportSettings = new Telerik.WinControls.RichTextBox.FormatProviders.Html.HtmlExportSettings();
    provider.ExportSettings.DocumentExportLevel = Telerik.WinControls.RichTextBox.FormatProviders.Html.DocumentExportLevel.Fragment;
    provider.ExportSettings.StylesExportMode = Telerik.WinControls.RichTextBox.FormatProviders.Html.StylesExportMode.Inline;
     
    result = provider.Export(this.Document).Replace("font-style: ;", "");

    I want to use this string as in input for the reporting HtmlTextBox. So far so good. But all underlined text elements are ignored by the report, because the HtmlTextBox doesn't support the 'text-decoration' element.

    Is there a more or less simple way to replace the 'text-decoration's with a standard html <u></u> which is supported by the reporting HtmlTextBox?

    In gerenal it would be a killer function if the output of the RadRichTextBox could be 100% compatible to the reporting HtmlTextBox by setting a property... ;)

    Regards,
    Michael
  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 25 Jun 2012 Link to this post

    Hi Michael,

    Thank you for your feedback. Presently, RadRichTextBox does not provide the possibility for altering the output of its export format providers. We will consider your suggestions as a feature request. If more customers require it, we will increase its priority in our task list. You can vote for it in our Public Issue Tracking System here.

    Greetings,
    Svett
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Michael Hilgers
    Michael Hilgers avatar
    76 posts
    Member since:
    Apr 2010

    Posted 25 Jun 2012 Link to this post

    Hello Svett,

    during my research for this issue, i found many many forum postings related to this and in general the topic of compatibility between the RadRichTextBox and the Reporting HtmlTextBox.

    So there is a huge demand. The first requests are from 2008 and are continuous up to now. But if there is always a new PITS issue created for every new request, there is no chance of getting enought "votes" for pushing this issue to you higher attention.

    And we as customers don't have the time to permanently observate the forums and the PIT if there is a new chance to vote for our requests. We have to find a solution to satisfy our customers and have to build a (more or less good) workaround.

    Regards,
    Michael
  5. Svett
    Admin
    Svett avatar
    728 posts

    Posted 28 Jun 2012 Link to this post

    Hi Michael,

    We have introduced the RadRichTextBox for Winforms in Q2 2011. You are the first one that requires such compatibility between our products. I suppose that you have observed the huge demand for a rich text box provided by one of the other Telerik's suites. As for the PIT, the item that I created was the first one regarding the WinForms suite and following your request.

    Kind regards,
    Svett
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top