Cutesoft Editor - Failure on call to editor.SaveRTF()

Last post 11-08-2011, 11:34 AM by cbeuker. 2 replies.
Sort Posts: Previous Next
  •  11-07-2011, 3:37 PM 71203

    Cutesoft Editor - Failure on call to editor.SaveRTF()

    Greetings all,


    Seems I encountered an issue with the SaveRTF() method.


    I have a simple page, with an cutesoft editor control on it and a button.


    Environment:

       I am running this on Window 7 x64 using IE9 or FireFox v 7.01 (error was also encountered

    when the page is hosted on a windows 2008 r2 (x64) instance.)

       .net 4.0

       Version 6.6 of cutesoft editor


    I have simple word 2007 document with a numbered list (either numbers or letters)

    ie:

    ---
    some text
       1) one
       2) two
       3) three
    ---

    If I cut and paste the above text from Word (version: 2007) and paste it into the cutesoft editor (with
    either the paste from word button or just regular paste. If I then try to make a call via by button click to the
    editor.SaveRTF(SomePath), I get the following exception listed below:


    [ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length]
     System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +9380795
    System.String.Substring(Int32 startIndex, Int32 length) +11
    CuteEditor.Convertor.HTMLNode.ParseStyleString(String style, CssType type, String forstr) +273
     CuteEditor.Convertor.HTMLNode.ParseCss(Params param) +609
    CuteEditor.Convertor.HTMLNode.ParseCss() +35
     CuteEditor.Convertor.HTMLNode.set_Parent(HTMLNode value) +48
    CuteEditor.Convertor.HTMLNode.Add(HTMLNode node) +57
    CuteEditor.Convertor.HTMLTree.a() +1973
    CuteEditor.Convertor.HTMLTree..ctor(String html) +369
    CuteEditor.Convertor.RTF.HTML2RTF..ctor(String html) +91
    CuteEditor.Editor.SaveRTF(String path) +273
    WebApplication1._Default.btnSave_Click(Object sender, EventArgs e) in C:\@DevCode\WebApplication1\WebApplication1\Default.aspx.cs:23
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

    Anyone encounter this before? Is it something I am doing, or a problem with the control?

    Thanks in advance..

  •  11-08-2011, 7:13 AM 71219 in reply to 71203

    Re: Cutesoft Editor - Failure on call to editor.SaveRTF()

    Hi ,
     
    Please try demo http://www.cutesoft.net/example/editRTF.aspx, does it get the same issue?
     
    If the demo works for you. Please download the  package below, you should find the source code in it. The example page name "editRTF.aspx".
     
    http://cutesoft.net/downloads/folders/21904/download.aspx 
     
    And the link above is the latest version too.
     
    Regards,
     
    Ken
  •  11-08-2011, 11:34 AM 71231 in reply to 71219

    Re: Cutesoft Editor - Failure on call to editor.SaveRTF()

    Worked on the site.  Downloaded the latest bits and that seemed to resolve the issue.
     
    Thanks.
     
View as RSS news feed in XML