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

RichTextBox Editor Print functionality

1 Answer 100 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Princess
Top achievements
Rank 1
Princess asked on 22 Jul 2011, 01:55 AM
Hi Telerik Support Team,

Currently in your demo for RichTextBox Editor, All the features under Print ribbon are working (HTML Print, Native Print, Print Preview). When I tried to add the RadRichTextBox in my program, the only thing that is working is the Native Print. I am not sure when i tried to select the HTML Print and Print Preview nothing happen. Do you have special code run those 2 features in your demo? See attached file for more visual detail.

Regards,
Princess Grace Dimaculangan

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivailo Karamanolev
Telerik team
answered on 22 Jul 2011, 03:50 PM
Hi Princess,

For the HTML printing and print preview to work, there must be a registered HTML format provider. In most cases this means that there must be a reference to Telerik.Windows.Documents.FormatProviders.Html.dll. However, if you're using library caching, besides the reference, the format provider should be registered manually. Here's how:
DocumentFormatProvidersManager.RegisterFormatProvider(new HtmlFormatProvider());

Regards,
Ivailo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
RichTextBox
Asked by
Princess
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Share this question
or