I have written java file for writing xlsm(Excel 2007).
Using Apache POI Library, Writing xlsx file is success. And Writing xlsm file is success. But I can\'t open th
XLSM is Excel Spreadsheet with Macros, if you don't need macros in your sheet, you can simply use .xlsx as extension as well.
You could also produce an .xls file (i.e. older format) via HSSFWorkbook, Excel should be able to open .xls just fine. Only limitation with this approach is that .xls is limited in the number of rows to 65k.