锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产中文在线,美女网站久久,日本一区二区三区视频免费看http://www.aygfsteel.com/javabloger/category/7400.htmlno descriptionzh-cnWed, 28 Feb 2007 03:18:40 GMTWed, 28 Feb 2007 03:18:40 GMT60- jstl 涓璭mpty 鍜?0 鐨勯棶棰?/title>http://www.aygfsteel.com/javabloger/articles/43349.htmlliunixliunixWed, 26 Apr 2006 08:40:00 GMThttp://www.aygfsteel.com/javabloger/articles/43349.htmlhttp://www.aygfsteel.com/javabloger/comments/43349.htmlhttp://www.aygfsteel.com/javabloger/articles/43349.html#Feedback0http://www.aygfsteel.com/javabloger/comments/commentRss/43349.htmlhttp://www.aygfsteel.com/javabloger/services/trackbacks/43349.html
濡傛灉bean涓璖tring鍨媔d="";
${empty聽id}
涓?br />
${id==0}
鐨嗕負true

涓嶇煡鏄綍閬撶悊!



]]> - jxls涓枃闂瑙e喅http://www.aygfsteel.com/javabloger/articles/41143.htmlliunixliunixFri, 14 Apr 2006 10:03:00 GMThttp://www.aygfsteel.com/javabloger/articles/41143.htmlhttp://www.aygfsteel.com/javabloger/comments/41143.htmlhttp://www.aygfsteel.com/javabloger/articles/41143.html#Feedback0http://www.aygfsteel.com/javabloger/comments/commentRss/41143.htmlhttp://www.aygfsteel.com/javabloger/services/trackbacks/41143.html
import聽java.util.Map;

import聽org.apache.poi.hssf.usermodel.HSSFCell;
import聽org.apache.poi.hssf.usermodel.HSSFCellStyle;
import聽org.apache.poi.hssf.usermodel.HSSFFont;
import聽org.apache.poi.hssf.usermodel.HSSFWorkbook;
import聽org.jxls.Cell;
import聽org.jxls.CellProcessor;


public聽class聽CustomCellProcessor聽implements聽CellProcessor聽
{


聽聽聽聽public聽void聽processCell(Cell聽cell,聽Map聽arg1)聽
{
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽HSSFWorkbook聽wb=new聽HSSFWorkbook();
聽聽聽聽聽聽聽聽HSSFFont聽font聽=聽wb.createFont();聽
聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽font.setFontHeightInPoints((short)24);聽
聽聽聽聽聽聽聽聽font.setFontName("瀹嬩綋");聽
聽聽聽聽聽聽聽聽font.setItalic(true);聽
聽聽聽聽聽聽聽聽HSSFCellStyle聽style聽=聽wb.createCellStyle();聽
聽聽聽聽聽聽聽聽style.setFont(font);

聽聽聽聽聽聽聽聽if(null!=cell.getHssfCell())
{
聽聽聽聽聽聽聽聽聽聽聽聽cell.getHssfCell().setCellStyle(style);
聽聽聽聽聽聽聽聽聽聽聽聽cell.getHssfCell().setEncoding(HSSFCell.ENCODING_UTF_16);
聽聽聽聽聽聽聽聽}
聽聽聽聽}

}
鐒跺悗
聽1
List聽persons=new聽ArrayList();
聽2
聽聽聽聽聽聽聽聽
聽3
聽聽聽聽聽聽聽聽persons.add(new聽Person(1,"liunix","liunix.com@163.com",new聽Date()));
聽4
聽聽聽聽聽聽聽聽persons.add(new聽Person(2,"鍒樺杈?/span>","liunix.com@163.com",new聽Date()));
聽5
聽聽聽聽聽聽聽聽persons.add(new聽Person(3,"liunix","liunix.com@163.com",new聽Date()));
聽6
聽聽聽聽聽聽聽聽persons.add(new聽Person(5,"liunix","liunix.com@163.com",new聽Date()));
聽7
聽聽聽聽聽聽聽聽persons.add(new聽Person(7,"liunix","liunix.com@163.com",new聽Date()));
聽8
聽聽聽聽聽聽聽聽persons.add(new聽Person(9,"liunix","liunix.com@163.com",new聽Date()));
聽9
聽聽聽聽聽聽聽聽persons.add(new聽Person(11,"liunix","liunix.com@163.com",new聽Date()));
10
聽聽聽聽聽聽聽聽persons.add(new聽Person(135,"liunix","liunix.com@163.com",new聽Date()));
11
聽聽聽聽聽聽聽聽
12
聽聽聽聽聽聽聽聽Map聽beans=new聽HashMap();
13
聽聽聽聽聽聽聽聽beans.put("persons",persons);
14
聽聽聽聽聽聽聽聽XLSTransformer聽transformer聽=聽new聽XLSTransformer();
15
聽聽聽聽聽聽聽聽
16
聽聽聽聽聽聽聽聽transformer.registerCellProcessor(new聽CustomCellProcessor());
17
聽聽聽聽聽聽聽聽transformer.transformXLS("E:/myeclipse/excel/src/test1/person_temp.xls",聽beans,聽"E:/myeclipse/excel/src/test1/person_dest.xls"); 涔嬬被鐨勪唬鐮佽皟鐢ㄤ箣
]]>
主站蜘蛛池模板:
东源县|
宜城市|
常宁市|
金坛市|
黄山市|
绵竹市|
金川县|
九台市|
巨鹿县|
惠安县|
台南市|
晋中市|
贵阳市|
小金县|
泸定县|
华宁县|
仲巴县|
清新县|
双流县|
庄河市|
井陉县|
油尖旺区|
镇沅|
延庆县|
伊宁市|
百色市|
塔河县|
阿图什市|
班戈县|
高唐县|
定州市|
武夷山市|
亳州市|
鹤峰县|
昌吉市|
阿鲁科尔沁旗|
佳木斯市|
龙海市|
慈溪市|
云霄县|
永春县|