How to create .docx files and .xlsx files on Android

前端 未结 4 817
一生所求
一生所求 2020-12-09 11:08

I have a very simple question: How to create .docx and .xlsx files on Android. Before someone marks this as duplicate, let me tell you that

4条回答
  •  春和景丽
    2020-12-09 11:45

    normally you only must to do this:

    FileOutputStream archivoSalida;
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sht = wb.createSheet("Conciliacion");
    ...
    ...
    archivoSalida = new FileOutputStream(fileDestination);
    wb.write(archivoSalida);
    archivoSalida.close();
    

    But it seems that your problem is not in the code. Is in the libraries and the compilation. I'am wrong?

提交回复
热议问题