We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error opening .html excel file format in java

when opening a Excel html file I get the following error when I open it as shown below in java 1.5 any suggestions?

excelWorkbook0.open(filenamein, FileFormatType.HTML );

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at com.aspose.cells.Style.e(Unknown Source)
at com.aspose.cells.Style.getFont(Unknown Source)
at com.aspose.cells.b.o.a(Unknown Source)
at com.aspose.cells.b.o.a(Unknown Source)
at com.aspose.cells.b.o.handleComment(Unknown Source)
at javax.swing.text.html.parser.DocumentParser.handleComment(DocumentParser.java:155)
at javax.swing.text.html.parser.Parser.parseTag(Parser.java:1562)
at javax.swing.text.html.parser.Parser.parseContent(Parser.java:2044)
at javax.swing.text.html.parser.Parser.parse(Parser.java:2211)
at javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:105)
at javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.java:73)
at com.aspose.cells.b.f.a(Unknown Source)
at com.aspose.cells.b.f.b(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)


Aspose.Cells for Java can open/load an html file which is Excel oriented file, it should not be a general html file.

Anyways, could you provide us the sample html file here, we will check it soon.

Thank you.

is there a way I can send the file to you via email? I cannot post the data file publicly.

To email (with your attachment(s)), please follow the below mentioned steps:

1: click the Contact button in the Post

2: In the drop down list options click "Send Amjad Sahi an Email”.

3: Attach the file(s) and send it (you may zip them prior attaching it).

4: Once you have done it, kindly confirm us here in this thread.

Thank you.