java操作Excel,word,outlook,pdf etc.相关包
 http://www.lowagie.com/iText/docs.html#download
http://danadler.com/jacob/jacobBin_17.zipJava操作PDF http://www.lowagie.com/
Java操作Word,Excel,Access
参考:
http://danadler.com/jacob/
http://jakarta.apache.org/poi/
http://www.onjava.com/pub/a/onjava/2003/01/22/poi.html
http://www.csdn.net/develop/article/15/15311.shtm
http://forum.java.sun.com/thread.jsp?forum=40&thread=382666&tstart=0&trange=15

解决方案 »

  1.   

    import java.lang.*;
    import java.io.*;public class LoadWinApp
    {
        public static void main(String args[]) throws IOException
        {
            Runtime r = Runtime.getRuntime();
            Process p = null;
            String strWinApp = "Execel.exe";
            String strWinFile = "C:\\test.xls";        if(args.length > 0)
            {
                strWinFile = args[0];
            }
            try
            {
                p = r.exec(strWinApp + " " + strWinFile);
            }
            catch(Exception e)
            {
                e.printStackTrace();
            }
        }
    }
      

  2.   

    借鉴别人的想法可以改一下内容,这样不用指定Excel.exe的文件路径了String strWinApp = "cmd start";