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

new to radeditor and export to pdf

1 Answer 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
diane
Top achievements
Rank 1
diane asked on 14 Aug 2014, 03:40 AM
I am just starting to work with a C#.net 2010 web form application, where I need to make small changes. I have never worked with the RadEditor before. I am getting the following error message when I run the application listed below.

My questions are the following:
1. Where can I obtain a copy of the Radeditor so That I can work with it? My company has a license for teletrik?
2. Once I have the radedior installed, can you tell me how to use it so that I can find the error that is being referred to below?
3. Will using a regular html editor be good enough?

[Exception: Invalid XHTML. RadEditor content should be correct XHTML in order to export to PDF.
Parse error:
Reference to undeclared entity 'Quot'. Line 837, position 105.
at line:
<p style="text-align: left; margin-right: 0px;" dir="ltr"><span style="line-height: 107%; font-family: &Quot;calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &Quot;times new roman&quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa;"><br clear="all" style="page-break-before: always; mso-special-character: line-break;">]
   Telerik.Web.UI.RadEditor.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +763
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +102
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.RadEditor.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +171
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 15 Aug 2014, 07:46 AM
Hi Diane,

If the company has proper license you should be able to obtain the Telerik UI for ASP.NET AJAX suite by logging in with credentials of the license holder and navigating to the download section of the account. If you need more details about account matters  you can contact our sales team via sales@telerik.com.

To get started with the RadEditor I suggest following the online documentation as best explains the needed basic steps to configure a project with a RadEditor control.

To setup the PDF exporting functionality you can follow this article and this online example.

The exception thrown is quite self-descriptive. As the error message states, the XHTML that is invalid and due to that the PDF exporting library throws the exception.

I suggest checking the validity of the HTML content used via the W3C validation tool. If any errors are found, I suggest correcting them, so that you could be sure that correct and valid HTML is used in the Radeditor control. 

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
diane
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or