Apache POI SS - Create New Workbook

Workbook wb = new HSSFWorkbook();

FileOutputStream fileOut;
fileOut = new FileOutputStream("newWorkbook.xls");
wb.write(fileOut);
fileOut.close();

Aspose.Cells

Workbook workbook = new Workbook(); // Creating a Workbook object
workbook.save("newWorkBook.xlsx", FileFormatType.XLSX); //Workbooks can be saved in many formats


Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited Apr 26, 2014 at 6:15 AM by shoaibkhan, version 11