Re: Saving Html to RTF with image fails

  •  03-26-2009, 2:13 PM

    Re: Saving Html to RTF with image fails

    Please try the following code:
     
    1. <%@ Page Language="C#"%>   
    2. <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>   
    3.   
    4. <script runat="server">   
    5.     void Page_Load(object sender, System.EventArgs e)   
    6.      {   
    7.         if (!IsPostBack)    
    8.         {    
    9.             Editor1.Text="Type here";   
    10.         }      
    11.     }   
    12.     public void Submit(object sender, System.EventArgs e)   
    13.     {   
    14.             Editor1.SaveRTF("document.rtf");   
    15.             textbox1.Text = Editor1.Text;    
    16.     }   
    17. </script>   
    18. <html>   
    19.     <head>   
    20.         <title>RTF to HTML, HTML to RTF</title>   
    21.     </head>   
    22.     <body>   
    23.         <form id="Form1" runat="server">   
    24.             <CE:Editor id="Editor1" URLType="Absolute" AutoConfigure="Simple" runat="server" ></CE:Editor>   
    25.             <br />   
    26.             <br />   
    27.             <asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button>                         
    28.             <br />   
    29.             <asp:textbox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="730px"></asp:TextBox>         
    30.         </form>   
    31.     </body>   
    32. </html>  

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread