锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久亚洲欧洲日产国码农村,国产精品亚洲精品日韩已方,久久国产精品亚洲一区二区http://m.tkk7.com/Vincent-chenxj/category/36210.htmlzh-cnSat, 29 Nov 2008 13:03:30 GMTSat, 29 Nov 2008 13:03:30 GMT60浣跨敤POI鏉ュ鐞咵xcel鍜學ord鏂囦歡鏍煎紡http://m.tkk7.com/Vincent-chenxj/articles/243379.htmlVincent-chenVincent-chenSat, 29 Nov 2008 01:50:00 GMThttp://m.tkk7.com/Vincent-chenxj/articles/243379.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/243379.htmlhttp://m.tkk7.com/Vincent-chenxj/articles/243379.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/243379.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/243379.html闃呰鍏ㄦ枃

]]>
浣跨敤poi鐢熸垚excel鏂囦歡http://m.tkk7.com/Vincent-chenxj/articles/242581.htmlVincent-chenVincent-chenTue, 25 Nov 2008 08:34:00 GMThttp://m.tkk7.com/Vincent-chenxj/articles/242581.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/242581.htmlhttp://m.tkk7.com/Vincent-chenxj/articles/242581.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/242581.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/242581.htmlpoi鏄痑pache鍩洪噾涓嬮潰鐨勪竴涓紑婧愰」鐩紝鍦╗url]http://www.apache.org/dyn/closer.cgi/jakarta/poi/[/url] 鍙互涓嬭澆鍒皃oi鐨勫寘
涓嬭澆浠ュ悗鎶婅В鍘嬪緱鍒扮殑鏂囦歡鍔犲埌web-inf涓嬮潰鐨刲ib鐩綍涓嬮潰灝卞彲浠ヤ嬌鐢ㄤ簡銆?br />
涓嬮潰鍏堜粙緇嶄竴涓嬬敓鎴恊xcel鏂囦歡瑕佺敤鐨勭被錛?br /> HSSFWorkbook 鐢ㄤ簬鍒涘緩excel鏂囦歡
HSSFSheet 鐢ㄤ簬鍒涘緩excel鐨勪功鍐?br /> HSSFRow    鐢ㄤ簬鍒涘緩涓琛?br /> HSSFCell     鐢ㄤ簬鍒涘緩涓涓崟鍏冩牸
HSSFCellStyle 鐢ㄤ簬鍒涘緩涓涓崟鍏冩牸鐨勬牸寮?br /> HSSFFont    鐢ㄤ簬鍒涘緩涓涓崟鍏冩牸鐨勫瓧浣撴牸寮?br /> 涓嬮潰鐢ㄦ湰浜哄啓鐨勪竴涓氱敤鐨勫伐鍏風被浣滀負渚嬪瓙璇存槑涓涓嬬敓鎴愭枃浠剁殑鏂規硶
錛堣繖閲屽彧鍒楀嚭閮ㄥ垎浠g爜錛岃緇嗙殑璇風湅闄勪歡鐨勬簮鐮侊紝濡傛灉瑕佷嬌鐢ㄩ檮浠剁殑浠g爜錛岃淇濈暀鍘熷垱浜虹殑鍚嶅瓧錛?br />
public   String createFile(List<Hashtable> hlist)//鏍規嵁浼犲叆鐨勫弬鏁拌鍙栨暟鎹紝榪欓噷鐢ㄤ簡鑼冨瀷鎸囧畾鍙傛暟鏄痟ashtable綾誨瀷鐨刲ist
{
HSSFWorkbook wb 
= new HSSFWorkbook();//鍒涘緩excel鏂囦歡
for(int hcount=0;hcount<hlist.size();hcount++)
{
Hashtable ha 
= hlist.get(hcount);//鑾峰彇絎琱count涓厓绱?/span>
HSSFSheet sheettemp = wb.createSheet();
wb.setSheetName(hcount,(String)ha.get(
"name"),(short)1);//鏂板緩涓涓猻heet
HSSFRow rowtitle = sheettemp.createRow((short)0);//娣誨姞琛ㄥご
       HSSFCell celltitle = rowtitle.createCell((short)0);
       celltitle.setEncoding(HSSFCell.ENCODING_UTF_16);
//璁劇疆瀛椾綋緙栫爜
       celltitle.setCellValue((String)ha.get("title"));//璁劇疆琛ㄥご鍐呭
       rowtitle = sheettemp.createRow((short)1);//鏂板涓琛岀敤浜庡瓨鏀捐〃澶村唴瀹?/span>
       String[] fields = (String[])ha.get("field");//鑾峰彇鍒楀ご
       sheettemp.addMergedRegion(new Region(0,(short)0,0,(short)(fields.length-1)));//鍚堝茍絎竴琛?/span>
       rowtitle = sheettemp.getRow(0);//鑾峰緱絎竴琛岀殑寮曠敤
       celltitle = rowtitle.getCell((short)0);//鑾峰緱絎竴琛岀涓涓崟鍏冩牸鐨勫紩鐢?/span>
       setTitleStyle(wb,celltitle);//璁劇疆琛ㄥご鏍煎紡
       HSSFRow rowfield = sheettemp.createRow((short)1);//鏂板涓琛岀敤浜庡瓨鏀懼垪澶村唴瀹?/span>
       for(int i = 0;i<fields.length;i++)//鏍規嵁鑾峰彇鍒扮殑鍒楀ご鏁版嵁錛屽驚鐜緗垪澶寸殑鍐呭
       {
       HSSFCell cellfield 
= rowfield.createCell((short)i);
       cellfield.setEncoding(HSSFCell.ENCODING_UTF_16);
       cellfield.setCellValue(fields[i]);
       setFieldStyle(wb,cellfield);
//璁劇疆鍒楀ご鏍煎紡
       int xx = cellfield.getStringCellValue().length();
       sheettemp.setColumnWidth((
short) i,(short)(600*xx));
       }

       List listtemp 
= (List)ha.get("body");//鑾峰彇琛ㄦ牸鍐呭
       Object[] rowtemp = null;
       
int count = 0;
       
for(Iterator it = listtemp.iterator();it.hasNext();)//榪唬鐢熸垚鏁版嵁
       {
        rowtemp 
= (Object[])it.next();
        HSSFRow rowbody 
= sheettemp.createRow((short)(count+2));
        
for(int i = 0;i<rowtemp.length;i++)
        
{
        HSSFCell cellbody 
= rowbody.createCell((short)i);
        cellbody.setEncoding(HSSFCell.ENCODING_UTF_16);
        cellbody.setCellValue((String)rowtemp[i]);
        }

        count
++;
       }

}

FileOutputStream fileOut;
try {
fileOut 
= new FileOutputStream(setFilepath());//鐢熸垚鏂囦歡
try {
wb.write(fileOut);
}
 catch (IOException e) {
System.out.println(e.toString());
}

       
try {
fileOut.close();
}
 catch (IOException e) {
System.out.println(e.toString());
}

}
 catch (FileNotFoundException e) {
System.out.println(e.toString());
}

return filename;
}


鏈鍚庤鏄庝竴涓嬮檮浠剁殑鍚勪釜綾葷殑浣滅敤錛?br /> Report.java 鎺ュ彛綾伙紝鎵鏈夌殑鑾峰彇鏁版嵁鐨勭被蹇呴』瀹炵幇榪欎釜鎺ュ彛錛屼互渚跨敓鎴愭枃浠舵椂緇熶竴綆$悊錛?br /> ExcelContent.java 瀹炵幇浜哛eport鎺ュ彛錛岃礋璐h幏鍙栨暟鎹茍緇勮鍒癶ashtable錛?br /> ReportTool.java 鏍規嵁浼犲叆鐨勫弬鏁扮敓鎴恊xcel鏂囦歡錛屽茍榪斿洖鐢熸垚鐨勬枃浠跺悕錛?br /> CreateReport.java 琚閮ㄧ▼搴忚皟鐢紝璐熻矗鑾峰彇鏁版嵁鍜屾妸鏁版嵁浼犻掔粰ReportTool錛屾渶鍚庣敓鎴恊xcel鏂囦歡錛岃繑鍥炵敓鎴愮殑鏂囦歡鍚嶇粰璋冪敤鑰呫?/font>

]]>
java瀵煎叆瀵煎嚭excel鎿嶄綔(jxl)http://m.tkk7.com/Vincent-chenxj/articles/242520.htmlVincent-chenVincent-chenTue, 25 Nov 2008 05:08:00 GMThttp://m.tkk7.com/Vincent-chenxj/articles/242520.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/242520.htmlhttp://m.tkk7.com/Vincent-chenxj/articles/242520.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/242520.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/242520.html闃呰鍏ㄦ枃

]]>
java鎶ヨ〃JXL鍜孭OI鎵撳嵃璁劇疆http://m.tkk7.com/Vincent-chenxj/articles/242512.htmlVincent-chenVincent-chenTue, 25 Nov 2008 04:59:00 GMThttp://m.tkk7.com/Vincent-chenxj/articles/242512.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/242512.htmlhttp://m.tkk7.com/Vincent-chenxj/articles/242512.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/242512.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/242512.html闃呰鍏ㄦ枃

]]>
涓姝ヤ竴姝ヤ嬌鐢≒OI鍋歫ava鎶ヨ〃http://m.tkk7.com/Vincent-chenxj/articles/242510.htmlVincent-chenVincent-chenTue, 25 Nov 2008 04:50:00 GMThttp://m.tkk7.com/Vincent-chenxj/articles/242510.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/242510.htmlhttp://m.tkk7.com/Vincent-chenxj/articles/242510.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/242510.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/242510.html闃呰鍏ㄦ枃

]]>
涓姝ヤ竴姝ヤ嬌鐢≒OI鍋歫ava鎶ヨ〃--鎵撳嵃璁劇疆綃?/title><link>http://m.tkk7.com/Vincent-chenxj/articles/242499.html</link><dc:creator>Vincent-chen</dc:creator><author>Vincent-chen</author><pubDate>Tue, 25 Nov 2008 04:01:00 GMT</pubDate><guid>http://m.tkk7.com/Vincent-chenxj/articles/242499.html</guid><wfw:comment>http://m.tkk7.com/Vincent-chenxj/comments/242499.html</wfw:comment><comments>http://m.tkk7.com/Vincent-chenxj/articles/242499.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/Vincent-chenxj/comments/commentRss/242499.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/Vincent-chenxj/services/trackbacks/242499.html</trackback:ping><description><![CDATA[     鎽樿: 璇誨彇鍜岄噸鍐?Workbooks       1POIFSFileSystem fs      =  2  3            ...  <a href='http://m.tkk7.com/Vincent-chenxj/articles/242499.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/Vincent-chenxj/aggbug/242499.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/Vincent-chenxj/" target="_blank">Vincent-chen</a> 2008-11-25 12:01 <a href="http://m.tkk7.com/Vincent-chenxj/articles/242499.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浣跨敤POI鐢熸垚Excel鏂囨。騫惰緗墦鍗版牱寮?/title><link>http://m.tkk7.com/Vincent-chenxj/articles/242491.html</link><dc:creator>Vincent-chen</dc:creator><author>Vincent-chen</author><pubDate>Tue, 25 Nov 2008 03:47:00 GMT</pubDate><guid>http://m.tkk7.com/Vincent-chenxj/articles/242491.html</guid><wfw:comment>http://m.tkk7.com/Vincent-chenxj/comments/242491.html</wfw:comment><comments>http://m.tkk7.com/Vincent-chenxj/articles/242491.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/Vincent-chenxj/comments/commentRss/242491.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/Vincent-chenxj/services/trackbacks/242491.html</trackback:ping><description><![CDATA[<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"><span style="color: #008080"> 1</span><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">package</span><span style="color: #000000"> test;<br /> </span><span style="color: #008080"> 2</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.io.FileOutputStream;<br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.io.IOException;<br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFCell;<br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFCellStyle;<br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFFont;<br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFPrintSetup;<br /> </span><span style="color: #008080">10</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFRichTextString;<br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFRow;<br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFSheet;<br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> org.apache.poi.hssf.usermodel.HSSFWorkbook;<br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img id="Codehighlighter1_502_2238_Open_Image" onclick="this.style.display='none'; Codehighlighter1_502_2238_Open_Text.style.display='none'; Codehighlighter1_502_2238_Closed_Image.style.display='inline'; Codehighlighter1_502_2238_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_502_2238_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_502_2238_Closed_Text.style.display='none'; Codehighlighter1_502_2238_Open_Image.style.display='inline'; Codehighlighter1_502_2238_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> ExcelTest </span><span id="Codehighlighter1_502_2238_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_502_2238_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /><br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img id="Codehighlighter1_567_2236_Open_Image" onclick="this.style.display='none'; Codehighlighter1_567_2236_Open_Text.style.display='none'; Codehighlighter1_567_2236_Closed_Image.style.display='inline'; Codehighlighter1_567_2236_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_567_2236_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_567_2236_Closed_Text.style.display='none'; Codehighlighter1_567_2236_Open_Image.style.display='inline'; Codehighlighter1_567_2236_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> main(String[] args) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> IOException </span><span id="Codehighlighter1_567_2236_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_567_2236_Open_Text"><span style="color: #000000">{<br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        <br /> </span><span style="color: #008080">19</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         </span><span style="color: #008000">//</span><span style="color: #008000"> create a new file  </span><span style="color: #008000"><br /> </span><span style="color: #008080">20</span><span style="color: #008000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">         FileOutputStream out </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> FileOutputStream(</span><span style="color: #000000">"</span><span style="color: #000000">D:/workbook.xls</span><span style="color: #000000">"</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">21</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         </span><span style="color: #008000">//</span><span style="color: #008000"> create a new workbook  </span><span style="color: #008000"><br /> </span><span style="color: #008080">22</span><span style="color: #008000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">         HSSFWorkbook wb </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> HSSFWorkbook();  <br /> </span><span style="color: #008080">23</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         </span><span style="color: #008000">//</span><span style="color: #008000"> create a new sheet  </span><span style="color: #008000"><br /> </span><span style="color: #008080">24</span><span style="color: #008000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">         HSSFSheet sheet </span><span style="color: #000000">=</span><span style="color: #000000"> wb.createSheet();  <br /> </span><span style="color: #008080">25</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />           <br /> </span><span style="color: #008080">26</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         </span><span style="color: #008000">//</span><span style="color: #008000">2.model  </span><span style="color: #008000"><br /> </span><span style="color: #008080">27</span><span style="color: #008000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">         HSSFRow row </span><span style="color: #000000">=</span><span style="color: #000000"> sheet.createRow(</span><span style="color: #000000">2</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">28</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         row.setHeightInPoints(</span><span style="color: #000000">20</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">29</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFCell cell </span><span style="color: #000000">=</span><span style="color: #000000"> row.createCell(</span><span style="color: #000000">2</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">30</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFFont cnFont </span><span style="color: #000000">=</span><span style="color: #000000"> wb.createFont();  <br /> </span><span style="color: #008080">31</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         cnFont.setFontHeightInPoints((</span><span style="color: #0000ff">short</span><span style="color: #000000">) </span><span style="color: #000000">10</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">32</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         </span><span style="color: #008000">//</span><span style="color: #008000">font.setFontName("姹変華鎶ュ畫綆");  </span><span style="color: #008000"><br /> </span><span style="color: #008080">33</span><span style="color: #008000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">         cnFont.setFontName(</span><span style="color: #000000">"</span><span style="color: #000000">闅朵功</span><span style="color: #000000">"</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">34</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFCellStyle cnStyle </span><span style="color: #000000">=</span><span style="color: #000000"> wb.createCellStyle();  <br /> </span><span style="color: #008080">35</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         cnStyle.setFont(cnFont);  <br /> </span><span style="color: #008080">36</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         cell.setCellStyle(cnStyle);  <br /> </span><span style="color: #008080">37</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFRichTextString richText </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> HSSFRichTextString(</span><span style="color: #000000">"</span><span style="color: #000000">涓枃瀛椾綋嫻嬭瘯</span><span style="color: #000000">"</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">38</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         cell.setCellValue(richText);  <br /> </span><span style="color: #008080">39</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFCell enCell </span><span style="color: #000000">=</span><span style="color: #000000"> row.createCell(</span><span style="color: #000000">3</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">40</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFFont enFont </span><span style="color: #000000">=</span><span style="color: #000000"> wb.createFont();  <br /> </span><span style="color: #008080">41</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         enFont.setFontHeightInPoints((</span><span style="color: #0000ff">short</span><span style="color: #000000">) </span><span style="color: #000000">10</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">42</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         enFont.setFontName(</span><span style="color: #000000">"</span><span style="color: #000000">Arial Black</span><span style="color: #000000">"</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">43</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFCellStyle enStyle </span><span style="color: #000000">=</span><span style="color: #000000"> wb.createCellStyle();  <br /> </span><span style="color: #008080">44</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         enStyle.setFont(enFont);  <br /> </span><span style="color: #008080">45</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         enCell.setCellStyle(enStyle);  <br /> </span><span style="color: #008080">46</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         enCell.setCellValue(</span><span style="color: #0000ff">new</span><span style="color: #000000"> HSSFRichTextString(</span><span style="color: #000000">"</span><span style="color: #000000">English font test</span><span style="color: #000000">"</span><span style="color: #000000">));  <br /> </span><span style="color: #008080">47</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         sheet.setColumnWidth(</span><span style="color: #000000">2</span><span style="color: #000000">, </span><span style="color: #000000">4000</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">48</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         sheet.setColumnWidth(</span><span style="color: #000000">3</span><span style="color: #000000">, </span><span style="color: #000000">4000</span><span style="color: #000000">);<br /> </span><span style="color: #008080">49</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         <br /> </span><span style="color: #008080">50</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         </span><span style="color: #008000">//</span><span style="color: #008000">3.output  </span><span style="color: #008000"><br /> </span><span style="color: #008080">51</span><span style="color: #008000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">         sheet.setDisplayGridlines(</span><span style="color: #0000ff">false</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">52</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         sheet.setPrintGridlines(</span><span style="color: #0000ff">false</span><span style="color: #000000">);  <br /> </span><span style="color: #008080">53</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         HSSFPrintSetup printSetup </span><span style="color: #000000">=</span><span style="color: #000000"> sheet.getPrintSetup();  <br /> </span><span style="color: #008080">54</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         </span><span style="color: #008000">//</span><span style="color: #008000">A4綰?/span><span style="color: #008000"><br /> </span><span style="color: #008080">55</span><span style="color: #008000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /></span><span style="color: #000000">         printSetup.setPaperSize(HSSFPrintSetup.A4_PAPERSIZE);  <br /> </span><span style="color: #008080">56</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         wb.write(out);  <br /> </span><span style="color: #008080">57</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         out.close(); <br /> </span><span style="color: #008080">58</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">59</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> </span><span style="color: #008080">60</span><span style="color: #000000"><img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://m.tkk7.com/Vincent-chenxj/aggbug/242491.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/Vincent-chenxj/" target="_blank">Vincent-chen</a> 2008-11-25 11:47 <a href="http://m.tkk7.com/Vincent-chenxj/articles/242491.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>POI瀹炵幇Excel鎻掑叆鍥劇墖http://m.tkk7.com/Vincent-chenxj/articles/242474.htmlVincent-chenVincent-chenTue, 25 Nov 2008 02:52:00 GMThttp://m.tkk7.com/Vincent-chenxj/articles/242474.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/242474.htmlhttp://m.tkk7.com/Vincent-chenxj/articles/242474.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/242474.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/242474.html闃呰鍏ㄦ枃

]]>
主站蜘蛛池模板: 91嫩草国产在线观看免费| 亚洲AⅤ永久无码精品AA | 亚洲综合综合在线| 成人au免费视频影院| 一区二区三区免费视频网站| 亚洲AV人无码综合在线观看| 天天拍拍天天爽免费视频| 99视频在线观看免费| 亚洲性无码AV中文字幕| 亚洲精品国产品国语在线| 中文字幕影片免费在线观看| 精品国产呦系列在线观看免费| 亚洲国产精品日韩在线| 亚洲精品乱码久久久久久不卡| 亚州免费一级毛片| 国产区在线免费观看| 亚洲一久久久久久久久| 久久亚洲AV午夜福利精品一区| 啦啦啦在线免费视频| 一区二区三区福利视频免费观看| 色偷偷尼玛图亚洲综合| 2022年亚洲午夜一区二区福利| 国产最新凸凹视频免费| 2021国内精品久久久久精免费| 午夜在线免费视频 | 最近2019中文字幕mv免费看| 国产综合免费精品久久久| 久久精品熟女亚洲av麻豆| 亚洲欧洲日韩国产| 亚洲精品无码久久久久去q| 男女啪啪永久免费观看网站| 88av免费观看| 手机看片国产免费永久| 美女无遮挡免费视频网站| 国产精品久久亚洲不卡动漫| 亚洲日韩区在线电影| 国产亚洲精午夜久久久久久| 国产人成免费视频| 成人毛片18女人毛片免费视频未 | 国产福利在线观看免费第一福利| 在线观看免费黄网站|