Rad Editor- Export to PDF and RTF shows an issue

2 posts, 0 answers
  1. Sindu
    Sindu avatar
    46 posts
    Member since:
    Oct 2011

    Posted 26 Feb 2012 Link to this post

    Hi ,

    I am a telerik licensed user.I couldn't export to pdf or RTf  of the RadEditor content.
    I have already sent an email to Telerik .but I didn't get any reply.

    I have given my code below.

    System.Net.WebClient webClient = new System.Net.WebClient();
    webClient.UseDefaultCredentials = true;
    System.IO.Stream stream = webClient.OpenRead(url);
    System.IO.StreamReader streamReader = new System.IO.StreamReader(stream);
     line = streamReader.ReadLine();
    if ((line != null) && (!(line.Contains("id=\"__VIEWSTATE\""))))
     content += line + "\r\n";
    while (line != null);
    editor.Content =content  // editor -RadEditor name

     protected void RadButton1_Click(object sender, EventArgs e)

    when I click on the PDF button ,it shows below 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:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Also below code shows how I placed  RadEDitor and set up its attribute for Export PDF.

    <telerik:RadEditor ID="editor" runat="server" Skin="Office2007" ToolsFile="~/configfiles/write_toolbar.xml" Width="100%" Height="100%" EditModes="Design"
                EnableResize="false" OnClientLoad="writeEditor_Load" AllowScripts="false" ContentFilters="DefaultFilters,PdfExportFilter">
                    <telerik:EditorCssFile Value="styles/dummy.css" />
                <ExportSettings OpenInNewWindow="true"   />
                <MediaManager ViewPaths="~/" UploadPaths="~/" />

    2) issue 2 -  when I export 'table'   format data ,Export to RtF  lost formatting ...

     So I want to know if it is possible to Export data into PDF and RTF without any error .

    This is urgent


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Feb 2012 Link to this post


    Check the following demo which implements the same.
    Editor / Export to PDF

Back to Top