Apache POI XSSF reading in excel files

前端 未结 8 2080
北恋
北恋 2021-02-13 00:00

I just have a quick question about how to read in an xlsx file using the XSSF format from Apache.

Right now my code looks like this:

InputStream fs = ne         


        
8条回答
  •  执笔经年
    2021-02-13 00:32

    // Load sheet- Here we are loading first sheet only
    XSSFSheet xlSheet = wb.getSheetAt(0);
    

    Here code recognizing only first sheet - In my Excel multiple sheets are there so facing problem to change sheet2 to sheet1(getSheetAt(0))...

提交回复
热议问题