锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91高清在线观看视频,久久久久亚洲精品,九色一区二区http://www.aygfsteel.com/andyj2ee/category/2123.htmljava tec skyzh-cnFri, 09 Mar 2007 11:01:19 GMTFri, 09 Mar 2007 11:01:19 GMT60- jasperreport 0.6.8 鐢熸垚 excel 鎶ヨ〃錛岀洰鍓嶈繕涓嶈兘鏀寔鍥劇墖http://www.aygfsteel.com/andyj2ee/archive/2005/07/13/7611.htmljava鍏夌幆java鍏夌幆Wed, 13 Jul 2005 06:28:00 GMThttp://www.aygfsteel.com/andyj2ee/archive/2005/07/13/7611.htmlhttp://www.aygfsteel.com/andyj2ee/comments/7611.htmlhttp://www.aygfsteel.com/andyj2ee/archive/2005/07/13/7611.html#Feedback0http://www.aygfsteel.com/andyj2ee/comments/commentRss/7611.htmlhttp://www.aygfsteel.com/andyj2ee/services/trackbacks/7611.html姝ょ増鏈琾oi 榪樹笉鏀寔鍥劇墖鐨勫鐞嗐?BR>鍒扮幇鍦?poi 3.0 alphal 宸茬粡鍙戝竷錛?2005-07-04) 榪欎釜鐗堟湰宸茬粡鍔犲叆鎻掑叆鍥劇墖鐨勫姛鑳姐?BR>涓嬭澆鍘熶唬鐮侊細http://apache.freelamp.com/jakarta/poi/dev/src/ poi-src-3.0-alpha1-20050704.zip
璇︾粏鏌ョ湅 sample 閮ㄥ垎
src/examples/src
org.apache.poi.hssf.usermodel.examples
OfficeDrawing
浜?005-05-01鍔犲叆浜嗘柊鐨勭ず渚嬩唬鐮侊細drawSheet5
public class OfficeDrawing


{
public static void main(String[] args)
throws IOException

{
// Create the workbook and sheets.
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet5 = wb.createSheet("fifth sheet");
drawSheet5( sheet5, wb );

// Write the file out.
FileOutputStream fileOut = new FileOutputStream("workbook.xls");
wb.write(fileOut);
fileOut.close();
}

private static void drawSheet5( HSSFSheet sheet5, HSSFWorkbook wb ) throws IOException

{

// Create the drawing patriarch. This is the top level container for
// all shapes. This will clear out any existing shapes for that sheet.
HSSFPatriarch patriarch = sheet5.createDrawingPatriarch();

HSSFClientAnchor anchor;
anchor = new HSSFClientAnchor(0,0,0,255,(short)2,2,(short)4,7);
anchor.setAnchorType( 2 );
patriarch.createPicture(anchor, loadPicture( "src/resources/logos/logoKarmokar4.png", wb ));

anchor = new HSSFClientAnchor(0,0,0,255,(short)4,2,(short)5,7);
anchor.setAnchorType( 2 );
patriarch.createPicture(anchor, loadPicture( "src/resources/logos/logoKarmokar4edited.png", wb ));

anchor = new HSSFClientAnchor(0,0,1023,255,(short)6,2,(short)8,7);
anchor.setAnchorType( 2 );
HSSFPicture picture = patriarch.createPicture(anchor, loadPicture( "src/resources/logos/logoKarmokar4s.png", wb ));
picture.setLineStyle( picture.LINESTYLE_DASHDOTGEL );

}

private static int loadPicture( String path, HSSFWorkbook wb ) throws IOException

{
int pictureIndex;
FileInputStream fis = null;
ByteArrayOutputStream bos = null;
try

{
fis = new FileInputStream( path);
bos = new ByteArrayOutputStream( );
int c;
while ( (c = fis.read()) != -1)
bos.write( c );
pictureIndex = wb.addPicture( bos.toByteArray(), HSSFWorkbook.PICTURE_TYPE_PNG );
}
finally

{
if (fis != null)
fis.close();
if (bos != null)
bos.close();
}
return pictureIndex;
}

} 
]]>
主站蜘蛛池模板:
宜兰市|
桦甸市|
安国市|
山东省|
连南|
桐城市|
武强县|
玛曲县|
大姚县|
凌云县|
新宁县|
湘西|
康乐县|
克山县|
新密市|
文登市|
弥渡县|
绥江县|
温宿县|
林芝县|
特克斯县|
乌兰浩特市|
镇赉县|
文安县|
石林|
工布江达县|
云林县|
南郑县|
福泉市|
信丰县|
潞城市|
综艺|
仁化县|
屯留县|
五指山市|
乌拉特中旗|
琼结县|
齐齐哈尔市|
清新县|
江源县|
英德市|