B4J Question [XLUtils] How to create MS Excel documents?

rtek1000

Active Member
Licensed User
Longtime User
Hi,

I found this library, very useful, but I couldn't find how to create the file.

There is a post related to how to create Word documents:

Lib:


I found this reference that seems to be creating a new file:

New Workbook:
Workbook wb = new HSSFWorkbook();
...
try  (OutputStream fileOut = new FileOutputStream("workbook.xls")) {
    wb.write(fileOut);
}

Workbook wb = new XSSFWorkbook();
...
try (OutputStream fileOut = new FileOutputStream("workbook.xlsx")) {
    wb.write(fileOut);
}

Source: https://poi.apache.org/components/spreadsheet/quick-guide.html#NewWorkbook


How can I create a new excel file using jPOI library?

Thank you.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
 
Upvote 0
Top