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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -