生成pdf ,看看fop : http://xml.apache.org/fop/index.html

解决方案 »

  1.   

    fop 版本只是0.20.3, 不能用吧....生成pdf有很多, http://www.lowagie.com/iText/links.html都有列出, 但我想知哪一個易用
      

  2.   

    生成doc/xls
    http://jakarta.apache.org/poi/index.html
      

  3.   

    使用res.setContentType( "application/msword" );和res.setContentType( "application/pdf" );
      

  4.   

    >使用res.setContentType( "application/msword" );
    >和res.setContentType( "application/pdf" );还要先有生成msword/pdf 格式的api 才能当outputstream用吧
      

  5.   

    生成excel
    http://jakarta.apache.org/poi/hssf/quick-guide.html
    生成word,我正在研究中……