java操作Excel的poi的字体设置

更新时间:2023-08-11 21:32:53 阅读: 评论:0

我恨我痴心歌词java操作Excel的poi的字体设置package com.java.poi;剑桥商务英语成绩查询
import org.apache.poi.hssf.urmodel.HSSFWorkbook;
import org.apache.poi.ss.urmodel.*;
import java.io.FileOutputStream;anchored
/**fuck什么意思
* 字体设置
* @author nidegui
* @create 2019-06-17 11:30
pik
*/
public class Test7 {
look
public static void main(String[] args) throws Exception {
Workbook wb=new HSSFWorkbook();
瘾君子是什么意思Sheet sheet = wb.createSheet("sheet页");
dtd
Row ateRow(1);
//创建⼀个字体
Font ateFont();
font.tFontHeightInPoints((short) 24);
font.tFontName("Courier New ");
font.tItalic(true);僭越
font.tStrikeout(true);
CellStyle ateCellStyle();
style.tFont(font);
Cell cell = ateCell((short) 1);
cell.tCellValue("this is test of fonts");
cell.tCellStyle(style);
FileOutputStream is=new FileOutputStream("E:\\3.xls");人间天堂的意思
wb.write(is);
is.clo();
}
}

本文发布于:2023-08-11 21:32:53,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/1129540.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:意思   字体   查询   痴心   成绩   商务英语
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图