jexcel导出excel文件的demo(三)

2014-11-24 08:07:34 · 作者: · 浏览: 3
sheet2.addCell(label);

Number number = new Number(3, 4, 3.1459);
sheet2.addCell(number);

// 所有的都完成,关闭资源
workbook.close();
copy.write();
copy.close();

} catch (BiffException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (RowsExceededException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (WriteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}


}

public static void main(String[] args){
TutorialMain main = new TutorialMain();
main.WritingSpreadSheet();
}

}

************************************************************************************************

下载整个工程的路径:http://up.2cto.com/2012/0524/20120524091831231.rar




摘自 kenchow126的专栏