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

Free Support Forum - aspose.com

Illegal Argument Exception on Adding CellRows


I am getting Illegal Argument Exception on importing the object array.

java.lang.IllegalArgumentException: Unknow value type

at com.aspose.cells.Cell.setValue(Unknown Source)

at com.aspose.cells.Cells.importObjectArray(Unknown Source)

In the object[] array one of the value is StringBuffer.It doesn't allow this object data.But if i convert to String it goes fine.How to resolve this issue so that Aspose understands it properly without conversion.



Hi Joe,

Please convert StringBuffer to string object before calling importing method.