Re: error while converting html to pdf

  •  03-26-2012, 8:49 AM

    Re: error while converting html to pdf

    Hi gurpreet,
     
    Do you get the same problem in the example below? If it only happens on your end, please create an example which can reproduce this issue and post here. I will check it and get back to you as soon as possible.
    1. <%@ Page Language="C#" %>  
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5.   
    6. <script runat="server">  
    7.   
    8.     protected void button1_Click(object sender, EventArgs e)  
    9.     {  
    10.         CuteEditor.Convertor.RTF.HTML2RTF content = new CuteEditor.Convertor.RTF.HTML2RTF(editor1.Text);  
    11.         textBox1.Text = content.RTF.ToString();  
    12.     }  
    13. </script>  
    14.   
    15. <html xmlns="http://www.w3.org/1999/xhtml">  
    16. <head id="Head1" runat="server">  
    17.     <title>example</title>  
    18. </head>  
    19. <body>  
    20.     <form id="form1" runat="server">  
    21.         <CE:Editor ID="editor1" runat="server">  
    22.         </CE:Editor>  
    23.         <asp:Button ID="button1" runat="server" Text="cover to pdf " OnClick="button1_Click" /><br />  
    24.         <asp:TextBox ID="textBox1" runat="server" Width="1000px" TextMode="multiLine" Rows="10"></asp:TextBox>  
    25.     </form>  
    26. </body>  
    27. </html>  
    Regards,
     
    Ken 
View Complete Thread