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..