39404142434445464748
for (int sheetNum = 1; sheetNum <= wb.getNumberOfSheets(); sheetNum++) { System.out.println( "Sheet " + sheetNum + ":" ); HSSFSheet sheet = wb.getSheetAt(sheetNum - 1); sheet.dumpDrawingRecords(true); } } }
40414243444546474849
4142434445464748495051
for (int sheetNum = 1; sheetNum <= wb.getNumberOfSheets(); sheetNum++) { System.out.println( "Sheet " + sheetNum + ":" ); HSSFSheet sheet = wb.getSheetAt(sheetNum - 1); sheet.dumpDrawingRecords(true); } } finally { wb.close(); } }
3334353637383940
{ POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(args[0])); HSSFWorkbook wb = new HSSFWorkbook(fs); HSSFSheet sheet = wb.getSheetAt(0); sheet.dumpDrawingRecords(); } }