java中如何把数据导入到已有的Excel中,数据不覆盖 5
3个回答
展开全部
File file = null; //写入file
Workbook book = null;
WritableWorkbook wbook = null; //写入wbook
File f = null; // 读取 f
file = new java.io.File(readPath);
book = Workbook.getWorkbook(file);
wbook = Workbook.createWorkbook(file, book);
WritableSheet sh = wbook.getSheet(0); // 写入数据 sheet
Sheet sheet = book.getSheet(0);
int length = sheet.getRows(); //得到当前行数
Workbook book = null;
WritableWorkbook wbook = null; //写入wbook
File f = null; // 读取 f
file = new java.io.File(readPath);
book = Workbook.getWorkbook(file);
wbook = Workbook.createWorkbook(file, book);
WritableSheet sh = wbook.getSheet(0); // 写入数据 sheet
Sheet sheet = book.getSheet(0);
int length = sheet.getRows(); //得到当前行数
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用POI这个框架,里面有对应的应用实力说明.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询