亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? poi.txt

?? Jakarta POI 是apache的子項(xiàng)目
?? TXT
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
1.創(chuàng)建工作簿 (WORKBOOK)
    HSSFWorkbook wb = new HSSFWorkbook();
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
2.創(chuàng)建工作表(SHEET)
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet1 = wb.createSheet("new sheet");
    HSSFSheet sheet2 = wb.createSheet("second sheet");
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
3.創(chuàng)建單元格(CELL)
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");    // Create a row and put some cells in it. Rows are 0 based.
    HSSFRow row = sheet.createRow((short)0);
    // Create a cell and put a value in it.
    HSSFCell cell = row.createCell((short)0);
    cell.setCellValue(1);    // Or do it on one line.
    row.createCell((short)1).setCellValue(1.2);
    row.createCell((short)2).setCellValue("This is a string");
    row.createCell((short)3).setCellValue(true);    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
4.創(chuàng)建指定單元格式的單元格
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");    // Create a row and put some cells in it. Rows are 0 based.
    HSSFRow row = sheet.createRow((short)0);    // Create a cell and put a date value in it. The first cell is not styled
    // as a date.
    HSSFCell cell = row.createCell((short)0);
    cell.setCellValue(new Date());    // we style the second cell as a date (and time). It is important to
    // create a new cell style from the workbook otherwise you can end up
    // modifying the built in style and effecting not only this cell but other cells.
    HSSFCellStyle cellStyle = wb.createCellStyle();
    cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy h:mm"));
    cell = row.createCell((short)1);
    cell.setCellValue(new Date());
    cell.setCellStyle(cellStyle);    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
5. 單元格的不同格式
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");
    HSSFRow row = sheet.createRow((short)2);
    row.createCell((short) 0).setCellValue(1.1);
    row.createCell((short) 1).setCellValue(new Date());
    row.createCell((short) 2).setCellValue("a string");
    row.createCell((short) 3).setCellValue(true);
    row.createCell((short) 4).setCellType(HSSFCell.CELL_TYPE_ERROR);    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
6.單元格的不同對(duì)齊方式
    public static void main(String[] args)
            throws IOException
    {
        HSSFWorkbook wb = new HSSFWorkbook();
        HSSFSheet sheet = wb.createSheet("new sheet");
        HSSFRow row = sheet.createRow((short) 2);
        createCell(wb, row, (short) 0, HSSFCellStyle.ALIGN_CENTER);
        createCell(wb, row, (short) 1, HSSFCellStyle.ALIGN_CENTER_SELECTION);
        createCell(wb, row, (short) 2, HSSFCellStyle.ALIGN_FILL);
        createCell(wb, row, (short) 3, HSSFCellStyle.ALIGN_GENERAL);
        createCell(wb, row, (short) 4, HSSFCellStyle.ALIGN_JUSTIFY);
        createCell(wb, row, (short) 5, HSSFCellStyle.ALIGN_LEFT);
        createCell(wb, row, (short) 6, HSSFCellStyle.ALIGN_RIGHT);        // Write the output to a file
        FileOutputStream fileOut = new FileOutputStream("workbook.xls");
        wb.write(fileOut);
        fileOut.close();    }
    /**
     * Creates a cell and aligns it a certain way.
     *
     * @param wb        the workbook
     * @param row       the row to create the cell in
     * @param column    the column number to create the cell in
     * @param align     the alignment for the cell.
     */
    private static void createCell(HSSFWorkbook wb, HSSFRow row, short column, short align)
    {
        HSSFCell cell = row.createCell(column);
        cell.setCellValue("Align It");
        HSSFCellStyle cellStyle = wb.createCellStyle();
        cellStyle.setAlignment(align);
        cell.setCellStyle(cellStyle);
    }
7.單元格的邊框設(shè)置
Working with borders
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");    // Create a row and put some cells in it. Rows are 0 based.
    HSSFRow row = sheet.createRow((short) 1);    // Create a cell and put a value in it.
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue(4);    // Style the cell with borders all around.
    HSSFCellStyle style = wb.createCellStyle();
    style.setBorderBottom(HSSFCellStyle.BORDER_THIN);
    style.setBottomBorderColor(HSSFColor.BLACK.index);
    style.setBorderLeft(HSSFCellStyle.BORDER_THIN);
    style.setLeftBorderColor(HSSFColor.GREEN.index);
    style.setBorderRight(HSSFCellStyle.BORDER_THIN);
    style.setRightBorderColor(HSSFColor.BLUE.index);
    style.setBorderTop(HSSFCellStyle.BORDER_MEDIUM_DASHED);
    style.setTopBorderColor(HSSFColor.BLACK.index);
    cell.setCellStyle(style);    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
8.填充和顏色設(shè)置
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");    // Create a row and put some cells in it. Rows are 0 based.
    HSSFRow row = sheet.createRow((short) 1);    // Aqua background
    HSSFCellStyle style = wb.createCellStyle();
    style.setFillBackgroundColor(HSSFColor.AQUA.index);
    style.setFillPattern(HSSFCellStyle.BIG_SPOTS);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("X");
    cell.setCellStyle(style);    // Orange "foreground", foreground being the fill foreground not the font color.
    style = wb.createCellStyle();
    style.setFillForegroundColor(HSSFColor.ORANGE.index);
    style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
    cell = row.createCell((short) 2);
    cell.setCellValue("X");
    cell.setCellStyle(style);    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
9.合并單元格操作
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");    HSSFRow row = sheet.createRow((short) 1);
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("This is a test of merging");    sheet.addMergedRegion(new Region(1,(short)1,1,(short)2));    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
10.字體設(shè)置
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("new sheet");    // Create a row and put some cells in it. Rows are 0 based.
    HSSFRow row = sheet.createRow((short) 1);    // Create a new font and alter it.
    HSSFFont font = wb.createFont();
    font.setFontHeightInPoints((short)24);
    font.setFontName("Courier New");
    font.setItalic(true);
    font.setStrikeout(true);    // Fonts are set into a style so create a new one to use.
    HSSFCellStyle style = wb.createCellStyle();
    style.setFont(font);    // Create a cell and put a value in it.
    HSSFCell cell = row.createCell((short) 1);
    cell.setCellValue("This is a test of fonts");
    cell.setCellStyle(style);    // Write the output to a file
    FileOutputStream fileOut = new FileOutputStream("workbook.xls");
    wb.write(fileOut);
    fileOut.close();
11.自定義顏色
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet();
    HSSFRow row = sheet.createRow((short) 0);
    HSSFCell cell = row.createCell((short) 0);
    cell.setCellValue("Default Palette");    //apply some colors from the standard palette,
    // as in the previous examples.
    //we'll use red text on a lime background    HSSFCellStyle style = wb.createCellStyle();
    style.setFillForegroundColor(HSSFColor.LIME.index);
    style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);    HSSFFont font = wb.createFont();
    font.setColor(HSSFColor.RED.index);
    style.setFont(font);    cell.setCellStyle(style);    //save with the default palette
    FileOutputStream out = new FileOutputStream("default_palette.xls");
    wb.write(out);
    out.close();    //now, let's replace RED and LIME in the palette
    // with a more attractive combination
    // (lovingly borrowed from freebsd.org)    cell.setCellValue("Modified Palette");    //creating a custom palette for the workbook
    HSSFPalette palette = wb.getCustomPalette();    //replacing the standard red with freebsd.org red
    palette.setColorAtIndex(HSSFColor.RED.index,
            (byte) 153, //RGB red (0-255)
            (byte) 0,    //RGB green
            (byte) 0     //RGB blue
    );
    //replacing lime with freebsd.org gold
    palette.setColorAtIndex(HSSFColor.LIME.index, (byte) 255, (byte) 204, (byte) 102);    //save with the modified palette
    // note that wherever we have previously used RED or LIME, the
    // new colors magically appear
    out = new FileOutputStream("modified_palette.xls");
    wb.write(out);
    out.close();
12.讀和重寫EXCEL文件
    POIFSFileSystem fs      =
            new POIFSFileSystem(new FileInputStream("workbook.xls"));
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    HSSFSheet sheet = wb.getSheetAt(0);
    HSSFRow row = sheet.getRow(2);
    HSSFCell cell = row.getCell((short)3);
    if (cell == null)
        cell = row.createCell((short)3);
    cell.setCellType(HSSFCell.CELL_TYPE_STRING);
    cell.setCellValue("a test");    // Write the output to a file

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看区一区二| 国产成人免费视频| 欧美性受极品xxxx喷水| 一区二区三区不卡在线观看| 色偷偷成人一区二区三区91 | 麻豆视频观看网址久久| 欧美一级免费大片| 国产在线麻豆精品观看| 国产午夜亚洲精品不卡| 91丨porny丨首页| 午夜精品福利视频网站| 欧美成人乱码一区二区三区| 国产一区二区三区在线看麻豆| 久久久久9999亚洲精品| www.亚洲在线| 日韩国产精品久久久| 精品国产精品一区二区夜夜嗨| 国产精品一区专区| 亚洲激情自拍视频| 日韩精品一区二区三区在线观看| 国产激情一区二区三区| 亚洲综合视频在线观看| 欧美大片在线观看一区| av在线综合网| 99re这里只有精品视频首页| 亚洲成av人**亚洲成av**| 日韩你懂的在线播放| 成人黄色电影在线 | 自拍偷拍亚洲激情| 欧美疯狂性受xxxxx喷水图片| 国产精品一区二区免费不卡| 亚洲精品免费一二三区| 久久综合狠狠综合久久综合88| 色综合久久88色综合天天| 精品中文字幕一区二区小辣椒| 亚洲精品第一国产综合野| 久久久亚洲午夜电影| 欧美三级电影网| 成人激情黄色小说| 韩国在线一区二区| 性欧美大战久久久久久久久| 亚洲国产成人在线| 欧美一卡二卡三卡四卡| 一本大道av一区二区在线播放| 国产精品亚洲人在线观看| 亚洲成人动漫在线免费观看| 国产精品久久久久aaaa| 久久欧美一区二区| 91精品国产丝袜白色高跟鞋| 一本大道久久a久久精二百| 国产精品一区二区91| 蜜桃视频在线一区| 亚洲亚洲精品在线观看| 国产精品电影院| 久久久午夜电影| 欧美成人a在线| 欧美精品aⅴ在线视频| 在线视频一区二区免费| 不卡免费追剧大全电视剧网站| 国产一区三区三区| 美女一区二区视频| 人人精品人人爱| 日日摸夜夜添夜夜添国产精品| 亚洲一区二区三区四区的| 国产精品久久久久久久蜜臀| 久久欧美一区二区| 亚洲精品一区二区精华| 精品国产免费人成在线观看| 日韩欧美在线影院| 日韩一级欧美一级| 欧美精品久久一区二区三区| 欧美电影在哪看比较好| 91精品国产综合久久精品app| 欧美性猛交xxxx乱大交退制版| 在线观看av不卡| 欧美日韩精品电影| 91精品国产麻豆| 日韩精品一区在线| 久久久久9999亚洲精品| 国产欧美日韩在线视频| 国产精品日日摸夜夜摸av| 免费的成人av| 国产一区二区三区免费| 丁香亚洲综合激情啪啪综合| 成人三级在线视频| 色综合天天综合网天天狠天天| 不卡av免费在线观看| 一本色道久久综合亚洲aⅴ蜜桃| 91免费视频观看| 欧美午夜电影网| 日韩一区二区电影| 国产视频一区二区在线| 国产精品久久夜| 亚洲一区二区三区中文字幕 | 日韩高清不卡一区| 久热成人在线视频| 国产不卡在线播放| 在线观看www91| 日韩欧美的一区二区| 久久麻豆一区二区| 亚洲精品免费播放| 日本成人在线网站| 国产精品99久久久久久宅男| 一本一道综合狠狠老| 欧美精品亚洲二区| 国产亚洲欧美日韩在线一区| 亚洲另类春色国产| 久久99精品久久久久婷婷| 成人精品gif动图一区| 欧美这里有精品| 精品不卡在线视频| 亚洲精品午夜久久久| 捆绑调教一区二区三区| 成人动漫一区二区三区| 在线播放欧美女士性生活| 国产午夜精品久久| 亚洲国产日韩精品| 国产精品一区久久久久| 欧美色网站导航| 国产精品素人视频| 日韩精品一级二级| www.av精品| 精品国产91九色蝌蚪| 亚洲男人的天堂在线观看| 韩国毛片一区二区三区| 欧美视频一区二区三区| 久久婷婷国产综合国色天香| 亚洲午夜久久久久中文字幕久| 国产在线看一区| 在线不卡免费欧美| 伊人色综合久久天天| 国产黄色成人av| 欧美一区二视频| 一区二区三国产精华液| 国产91精品久久久久久久网曝门| 欧美福利视频一区| 一区二区三区欧美亚洲| 国产不卡视频在线播放| 精品国产一区久久| 亚洲6080在线| 91国在线观看| 自拍偷拍亚洲综合| 成人性生交大片免费看视频在线| 日韩欧美国产午夜精品| 午夜成人在线视频| 欧美亚洲综合色| 依依成人精品视频| 2020国产精品| 日韩极品在线观看| 欧美中文字幕一二三区视频| 亚洲欧美一区二区久久| 波多野结衣中文字幕一区二区三区| 久久久青草青青国产亚洲免观| 男女激情视频一区| 欧美一区二区三区喷汁尤物| 亚洲一区二区精品久久av| 色欲综合视频天天天| 亚洲免费视频成人| 99国产欧美另类久久久精品| 国产精品美女久久久久久 | 久久99精品一区二区三区三区| 欧美日韩中文一区| 亚洲福利视频一区二区| 欧美日韩1234| 日韩激情中文字幕| 日韩免费性生活视频播放| 奇米精品一区二区三区在线观看一| 欧美日韩激情在线| 日韩高清不卡一区二区三区| 欧美一区在线视频| 韩国av一区二区三区在线观看| 精品久久一二三区| 懂色av一区二区在线播放| 欧美国产精品v| 一本一本久久a久久精品综合麻豆| 中文字幕亚洲在| 色婷婷综合久久久久中文| 亚洲国产乱码最新视频| 91麻豆精品91久久久久久清纯| 免费看欧美女人艹b| 2欧美一区二区三区在线观看视频| 国产精品一区二区果冻传媒| 国产精品乱人伦中文| 91猫先生在线| 婷婷丁香久久五月婷婷| 日韩视频在线你懂得| 国产精品一卡二| 亚洲欧美日韩国产中文在线| 欧美日韩国产另类一区| 看电视剧不卡顿的网站| 国产精品久久久一区麻豆最新章节| 一本色道a无线码一区v| 奇米亚洲午夜久久精品| 欧美国产禁国产网站cc| 欧美日韩专区在线| 国产麻豆精品在线| 洋洋成人永久网站入口| 精品少妇一区二区三区| 91丝袜美女网| 国内不卡的二区三区中文字幕|