java - How Do I Create a New Excel File Using JXL? -
i'm trying create new excel file using jxl, having hard time finding examples in api documentation , online.
after messing around awhile longer found worked , saw there still wasn't solution posted here yet, here's found:
try { string filename = "file.xls"; writableworkbook workbook = workbook.createworkbook(new file(filename)); workbook.createsheet("sheet1", 0); workbook.createsheet("sheet2", 1); workbook.createsheet("sheet3", 2); workbook.write(); workbook.close(); } catch (writeexception e) { }
Comments
Post a Comment