Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

´ÓJAVAÖ±½Ó¶ÁÈ¡EXCEL¡¢WORD²¢Éú³ÉPDFÎļþ

´ÓJAVAÖ±½Ó¶ÁÈ¡EXCEL¡¢WORD²¢Éú³ÉPDFÎļþ
1¡£²Ù×÷EXCELºÍWORDÎļþ
ʹÓÃJAVA´ÓEXCEL¡¢WORDÎļþÖжÁдÊý¾Ý£¬¿ÉÒÔʹÓÃhttp://jexcelapi.sourceforge.net/
ÌṩµÄJAVA API£­Java Excel API£¬ÕâÀïÓÐÆäÖ¸ÄÏhttp://www.andykhan.com/jexcelapi/tutorial.html
£¬¿ÉÓÉ´ËÏÂÔØJARÎļþhttp://www.andykhan.com/jexcelapi/download.html
¡£
´ËAPIÌṩËùÓеĶÁ¡¢Ð´¡¢Ð޸ġ¢½¨Á¢µÄ¹¦ÄÜ¡£¶ÔÓÚÒ»°ãÓ¦ÓÃ×ã¹»ÁË¡£ÔÚÈκÎÖ§³ÖJAVAµÄϵͳÉÏʹÓá£Ä¿Ç°£¬JExcelApiÉв»Ö§³ÖÓйØchart¡¢graph »òÕß macroµÄÐÅÏ¢£¬µ«Êǻ´±´²¢±£ÁôÕâЩÐÅÏ¢¡£Ö»Ö§³ÖPNGͼÏñ¡£
2¡£Éú³ÉPDFÎļþ
Èô´ÓJAVAÉú³ÉPDFÎļþ£¬¿ÉÒÔʹÓÃhttp://www.qoppa.com/
ÌṩµÄÓ¦ÓóÌÐò¿âjPDFWriter¡£jPDFWriterÊÇÒ»¸öÀà¿â£¬¿ÉÒÔÖ±½Ó´ÓJAVAµÄÓ¦ÓóÌÐòµ÷ÓÃÒÔ²úÉúPDFÎļþ¡£ÆäÍøÕ¾µÄÏÂÔØÎļþÖаüº¬ÁË˵Ã÷ºÍÀý×Ó£¬ÓÐÐËȤ¿ÉÒÔ×ÐϸÑо¿¡£
3¡£°ÑJExcelAPIºÍjPDFWriter½áºÏÆðÀ´£¬¾Í¿ÉÒÔÔÚÓ¦ÓÃÖÐÖ±½Ó°ÑXLSÎļþת»»³ÉPDFÎļþ¡£Èç¹ûÔÙ½áºÏDatabase£¬¾Í¿ÉÒÔÖ±½Ó°ÑÓйصı¨¸æÊý¾ÝÉú³ÉXLSÎļþµÄͬʱÉú³ÉPDFÎļþ¡£
ϱ߸ø³öÁËÒ»¸öÀý×Ó£¬ÊÇÕë¶ÔXLS£¬ËäÈ»¼òµ¥£¬µ«ÊÇÍêÕû£¬ÒÔ´ËΪ»ù´¡£¬¿ÉÒÔ°´ÕÕ×Ô¼ºµÄÐèÒªÕ¹¿ª¹¤×÷ÁË¡£¶ÔÓÚWORDÒ²ÊÇÒ»Ñù£¬ËùÓв»ÔÙÁí¸øÁË¡£
//
//Compile:
//javac -classpath .;jexcelapi/jxl.jar;jPDFWriter/jPDFWriter.jar xlsPrinter.java
//Run:
//java -classpath .;jexcelapi/jxl.jar;jPDFWriter/jPDFWriter.jar xlsPrinter
//
//
import java.awt.Graphics;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import java.io.File;
import java.util.Vector;
import java.util.Date;
import jxl.*;//JExcelAPI
import com.qoppa.pdfPrinter.PDFPrinterJob;//jPDFWriter
public class xlsPrinter implements Printable
{
    private int m_CurrentPage;
    private int m_CurrentPageStartRow;
    private int m_CurrentPageEndRow;
    private final static int DEFAULT_COLUMN_WIDTH = 72;
    private final static int CELL_MARGIN_X = 4;
    private final static int CELL_MARGIN_Y = 4;
    
    private Vector m_Data;
  


Ïà¹ØÎĵµ£º

Java Socket±à³Ì

Socket´«Êäģʽ
SocketsÓÐÁ½ÖÖÖ÷ÒªµÄ²Ù×÷·½Ê½:ÃæÏòÁ¬½ÓµÄºÍÎÞÁ¬½ÓµÄ.ÃæÏòÁ¬½ÓµÄsockets²Ù×÷¾ÍÏñÒ»²¿µç»°,ËûÃDZØÐ뽨Á¢Ò»¸öÁ¬½ÓºÍÒ»È˺ô½Ð.ËùÓеÄÊÂÇéÔÚµ½´ïʱµÄ˳ÐòºÍËûÃdzö·¢Ê±µÄ˳ÐòʱÏàͬ.ÎÞÁ¬½ÓµÄsockets²Ù×÷¾ÍÏñÊǸöÓʼþͶµÝ,,ûÓÐʲôȷ±£,¶à¸öÓʼþ¿ÉÄÜÔÚµ½´ïʱµÄ˳ÐòºÍ³ö·¢Ê±µÄ˳Ðò²»Ïàͬ.
µ½µ×ÓÃÄÄÖÖģʽÊÇÓÊÓ¦ ......

Java ¶ÑÅÅÐòËã·¨

/**
* ¶ÑÅÅÐò
*
* */
public void heapSort(double[] a){
double temp;
initCreateHeap(a);
for(int i = a.length - 1; i > 0; i --){
temp = a[0];
a[0] = a[i];
a[i] = temp;
createHeap(a, i, 0);
}
}

/**
* ½«Êý×é¿´³ÉÍêÈ«¶þ²æÊ÷£¬½¨Á¢×î´ó¶Ñ
* */
private ......

Java ±à³ÌµÄ¶¯Ì¬ÐÔ£¬µÚ 1 ²¿·Ö: ÀàºÍÀà×°Èë

ÕâÒ»ÓÐ¹Ø Java ±à³Ì¶¯Ì¬·½ÃæµÄеÄϵÁÐÎÄÕÂÑо¿ÁËÖ´ÐÐ Java Ó¦ÓóÌÐòʱĻºóËù·¢ÉúµÄÊÂÇé¡£ÆóÒµ Javaר¼Ò
Dennis Sosnoski ÌṩÁË Java ¶þ½øÖÆÀà¸ñʽÒÔ¼°ÔÚ JVM
ÄÚ²¿ÀàËù·¢ÉúµÄÇé¿öµÄÄÚÄ»¡£½Ó×Å£¬Ëû½«ÌÖÂÛÀà×°ÈëÎÊÌ⣬Æ䷶ΧÉæ¼°´ÓÔËÐмòµ¥µÄ Java Ó¦ÓóÌÐòËùÐèµÄÀàµÄÊýÁ¿µ½¿ÉÄÜÔì³É J2EE
¼°ÀàËƵĸ´ÔÓÌåϵ½á¹¹³öÏÖÎÊÌâµÄ ......

Java ±à³ÌµÄ¶¯Ì¬ÐÔ£¬µÚ 7 ²¿·Ö: Óà BCEL Éè¼Æ×Ö½ÚÂë

Apache Byte Code Engineering Library (BCEL)¿ÉÒÔÉîÈë Java
ÀàµÄ×Ö½ÚÂë¡£¿ÉÒÔÓÃËüת»»ÏÖÓеÄÀà±íʾ»òÕß¹¹½¨ÐµÄÀ࣬ÒòΪ BCEL ÔÚµ¥¶ÀµÄ JVM
Ö¸Á±ðÉϽøÐвÙ×÷£¬ËùÒÔ¿ÉÒÔÈÃÄú¶Ô´úÂëÓÐ×îÇ¿´óµÄ¿ØÖÆ¡£²»¹ý£¬ÕâÖÖÄÜÁ¦µÄ´ú¼ÛÊǸ´ÔÓÐÔ¡£ÔÚ±¾ÎÄÖУ¬Java ¹ËÎÊ Dennis Sosnoski
½éÉÜÁË BCEL µÄ»ù±¾ÄÚÈÝ£¬²¢Òýµ¼¶ÁÕßÍê³ÉÒ»¸öʾÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ