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

How to make underline compatible to Reporting HtmlTextBox?

3 Answers 189 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Michael Hilgers
Top achievements
Rank 1
Michael Hilgers asked on 20 Jun 2012, 02:16 PM
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

3 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 25 Jun 2012, 10:35 AM
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 >>
0
Michael Hilgers
Top achievements
Rank 1
answered on 25 Jun 2012, 11:05 AM
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
0
Svett
Telerik team
answered on 28 Jun 2012, 07:31 AM
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 >>
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Michael Hilgers
Top achievements
Rank 1
Answers by
Svett
Telerik team
Michael Hilgers
Top achievements
Rank 1
Share this question
or