About instantiating Workbook

How you are instantiating Workbook though it is Interface.We need to implement it’s abstract methods first.

Hi,


Well, com.aspose.cells.Workbook is not an abstract class, it is declared as:
public class Workbook in Aspose.Cells for Java component’s JAR/APIs set.
Aspose.Cells is a spreadsheet management library and does not provide any UI. It supports almost all the features of MS Excel (97-2010, 2013) via its APIs. If you need to instantiate the Workbook class, the following code shows on how to use the Workbook constructor to create and initialize a new instance of the class:
e.g
Sample code:

Workbook workbook = new Workbook();

And, if you are reading/opening an existing template Excel file (XLS, XLSX etc.), you will still use its constructor / overloads, see the simplest sample code below for your reference:
e.g
Sample code:

Workbook workbook = new Workbook(filePath);

We recommend you to kindly see the documents on how to read/write Excel file formats for your reference:
http://www.aspose.com/docs/display/cellsjava/Opening+Files
http://www.aspose.com/docs/display/cellsjava/Saving+Files

Let us know if you still have any issue or confusion.

Thank you.