[一]初识Poi

示例代码:

package com.lxl.poi;

import java.io.FileOutputStream;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;

/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args ) throws Exception
{
Workbook wk = new HSSFWorkbook();
FileOutputStream out = new FileOutputStream("e:\\poi_excel.xls");
wk.write(out);
out.close();
}
}

 

posted on 2015-12-24 14:13  Simle  阅读(142)  评论(0编辑  收藏  举报