锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久99精品免费观看,国内在线观看一区二区三区,日韩一区二区三区免费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;
}

} 
]]>
主站蜘蛛池模板:
西盟|
汝阳县|
靖边县|
阿勒泰市|
林口县|
云安县|
香格里拉县|
忻城县|
兴文县|
陆川县|
荆州市|
金华市|
奎屯市|
德钦县|
内江市|
葫芦岛市|
霍城县|
济源市|
汽车|
花垣县|
SHOW|
北票市|
遂宁市|
三原县|
滨海县|
保山市|
张家川|
呼玛县|
盐池县|
锡林浩特市|
眉山市|
重庆市|
新河县|
寿阳县|
逊克县|
台南县|
阳山县|
鲁山县|
玉树县|
安塞县|
逊克县|