Hi Dave Hayward,
First of all, you don't need to do any additional processing to the exported document, as the Export method of HtmlFormatProvider returns a string. The following code will be sufficient:
With regard to the issue in your post, unfortunately the HTML that HtmlFormatProvider exports is not fully compatible with the HTML that HtmlTextBox recognizes. The list of supported tags in HtmlTextBox can be found
here and the customization possibilities of the HtmlFormatProvider are described in
this article. Maximum compatibility is achieved by setting the DocumentExportLevel to Fragment ad StylesExportMode to Inline, but there are other issues that cannot be worked around, namely the recognition of Bold and Underlined parts of the document.
If you would be showing the exported document in a report, we can send you the source code of RadRichTextBox and HtmlFormatProvider, so that you can create a custom HTML format provider that will be compatible with HtmlTextBox. In that case, please open a support ticket requesting the source code.
We will try to make HtmlTextBox and RadRichTextBox compatible as soon as possible, but the time frame is still not certain.
Greetings,
Iva
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items