锘??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 GMT60jstl 涓璭mpty 鍜?0 鐨勯棶棰?/title><link>http://www.aygfsteel.com/javabloger/articles/43349.html</link><dc:creator>liunix</dc:creator><author>liunix</author><pubDate>Wed, 26 Apr 2006 08:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/javabloger/articles/43349.html</guid><wfw:comment>http://www.aygfsteel.com/javabloger/comments/43349.html</wfw:comment><comments>http://www.aygfsteel.com/javabloger/articles/43349.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/javabloger/comments/commentRss/43349.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/javabloger/services/trackbacks/43349.html</trackback:ping><description><![CDATA[寰楀埌涓涓粨鏋?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">濡傛灉bean涓璖tring鍨媔d</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">;<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />${</span><span style="COLOR: #0000ff">empty</span><span style="COLOR: #000000">聽id}<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />涓?br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />${id</span><span style="COLOR: #000000">==</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">}<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />鐨嗕負true<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />涓嶇煡鏄綍閬撶悊</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000"><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /></span></div><img src ="http://www.aygfsteel.com/javabloger/aggbug/43349.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/javabloger/" target="_blank">liunix</a> 2006-04-26 16:40 <a href="http://www.aygfsteel.com/javabloger/articles/43349.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>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;

publicclass聽CustomCellProcessor聽implements聽CellProcessor聽{

聽聽聽聽
publicvoid聽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);
聽聽聽聽聽聽聽聽}

聽聽聽聽}


}

鐒跺悗
聽1List聽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");
涔嬬被鐨勪唬鐮佽皟鐢ㄤ箣

liunix 2006-04-14 18:03 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 东源县| 宜城市| 常宁市| 金坛市| 黄山市| 绵竹市| 金川县| 九台市| 巨鹿县| 惠安县| 台南市| 晋中市| 贵阳市| 小金县| 泸定县| 华宁县| 仲巴县| 清新县| 双流县| 庄河市| 井陉县| 油尖旺区| 镇沅| 延庆县| 伊宁市| 百色市| 塔河县| 阿图什市| 班戈县| 高唐县| 定州市| 武夷山市| 亳州市| 鹤峰县| 昌吉市| 阿鲁科尔沁旗| 佳木斯市| 龙海市| 慈溪市| 云霄县| 永春县|