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

Display content of the new WinForm RichTextBox in Report

1 Answer 117 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael Hilgers
Top achievements
Rank 1
Michael Hilgers asked on 03 Aug 2011, 10:19 AM
Hi everyone,

i just tried to save the content from the new WinForm RichTextBox as HTML and read it into a Telerik Reporting HtmlTextBox. Okay, this failed because of the HtmlTextBox Command limitation... ;)

Is there any known way to show the formated content (colors, font weight etc.) of the RichTextBox in the Report? This would be a really great feature! If there is no existing possibility, would it be possible to create a RichtTextBox FormatProvider which saves the content of the box in a way the reporting HtmlTextBox understands?

Best Regards,
Michael

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 08 Aug 2011, 03:32 PM
Hello Michael,

Thank you for contacting us.

Here is a statement, from another thread, where the same subject is discussed:
"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 and 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, you can download the source code of RadRichTextBox and HtmlFormatProvider from your account, so that you can create a custom HTML format provider that will be compatible with HtmlTextBox."

I hope that you find this information helpful. Should you have any other questions or suggestions, do not hesitate to contact us.

Regards,
Stefan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Michael Hilgers
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or