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

Export RadEditor Content

1 Answer 78 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 07 Dec 2010, 05:43 PM
Hi,

I'm trying to export the content of the radeditor to PDF. I can load the radeditor without a problem ie RadEditor.Content = MyText()
I used the below on a button click event:

PrintEditor.ExportToPdf();

When I do I can the attached error. The thing is, when I copy the html code from the editor and hard code it in to the <Content></Content> tags it works fine.

Any clues?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 08 Dec 2010, 04:06 PM
Hi Karl,

This error might occur if the there are some problems with the content to be converted.

RadEditor is using third party tool to provide HtmlToPdf conversion and this tool has some requirements and limitations. RadEditor has a built-in PdfExportFilter content filter which is modifying the content to match the requirements of the third party tool. Please make sure that you have PdfExportFilter enabled. More information regarding content filters is available in this help article.

If you have enabled the content filter and the problem still occurs, could you please provide the content that you are trying to export?

You can find a list of known limitations of the HtmlToPdf exproter tool in the following forum thread:
http://www.telerik.com/community/forums/aspnet-ajax/editor/exporttopdf-and-jquery-ui-dialog.aspx

Greetings,
Dobromir
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Karl
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or