日期:2014-05-18  浏览次数:20586 次

jsp页面如何显示指定得excel
我用程序生成了一个workbook.xls
但我再IE里面显示得时候怎么都显示不出来workbook.xls
下面是我得代码,请高手指点!
<%@page   contentType= "application/vnd.ms-excel;   charset=GB18030 "   %>
<%@   page   import= "com.alipay.util.excel "%>

<%
//response.setHeader( "Content-disposition ", "attachment;filename=F://workbook.xls "       );
//   response.reset();
  //response.setContentType( "application/vnd.ms-excel ");
  //response.setHeader( "Content-disposition ", "filename= "+ "workbook.xls ");

    excel.writeEXCEL( "F://workbook.xls ", "b ");  

网上看到得方法我基本都用了   。。。就是出不来   郁闷啊

------解决方案--------------------
用流推出来 文件类型ms-excel 有问题发邮件到lws.emmagee@163.com
------解决方案--------------------
输出到File不就行了么?只要格式对