Hi everyone,
i'm exporting my RadRichTextBox content to a HTML string using the following options:
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
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