Following simple HTML files without complex formatting or dynamic content cause strange exception at attempt to load them as Excel worksheet:
Samples.ZIP (1.2 KB)
var loadOptions = new HtmlLoadOptions(LoadFormat.Html); var noteWb = new Workbook(htmlPathPath, loadOptions);
Exception message: “Item has already been added. Key in dictionary: ‘sub’ Key being added: ‘sub’”.
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at .(String , ArrayList )
at .(Stream )
at .(String , Stream , LoadOptions )
at Aspose.Cells.Workbook.(String , LoadOptions )
As for me, there are no any places in them that could raise such error. Similar htmls are loaded without problem. Could you please explain what’s the problem?