本文概述
- Apache POI Excel映像示例
- PNG
- JPG格式
- 新品
Apache POI Excel映像示例
package poiexample;
import java.io.FileOutputStream;
import java.io.OutputStream;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
public class OutlineExample {
public static void main(String[] args) {
try (OutputStream os = new FileOutputStream("srcmini.xls")) {
Workbook wb = new HSSFWorkbook();
Sheet sheet = wb.createSheet("Sheet");
sheet.groupRow( 4, 10 );
sheet.groupColumn( 2, 8 );
wb.write(os);
}catch(Exception e) {
System.out.println(e.getMessage());
}
}
}
【apache poi excel图片】输出:
文章图片
推荐阅读
- apache poi单元格中的换行
- apache poi绘制形状
- apache poi excel单元格类型
- apache poi单元多种风格
- apache poi绘制边界
- apache poi excel单元格属性
- apache poi隐藏行
- apache poi excel文档标题
- apache poi excel字体