Hello, i am sending the html code of a page to display it in a radeditor so i can export it to rtf or to pdf. However, i'm getting this error:
Invalid XHTML. RadEditor content should be correct XHTML in order to export to PDF.
Parse error:
Declaración DTD inesperada. Línea 674, posición 13.
at line:
<body><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
this is how my radeditor is defined:
<telerik:RadEditor ID="redCertificate" runat="server" Width="90%" Height="800px"
Language="es-ES" onexportcontent="redCertificate_ExportContent">
<exportsettings openinnewwindow="true" filename="Certificate">
<Rtf PageHeader="RadEditor content" />
</exportsettings>
<content></content>
</telerik:RadEditor>
and this is the code behind
protected void btnPDF_Click(object sender, EventArgs e)
{
redCertificate.ExportToPdf();
}
Any ideas what could be causing this error?
thanks in advance