当前位置: 代码迷 >> Java Web开发 >> jsp页面怎么显示指定得excel
  详细解决方案

jsp页面怎么显示指定得excel

热度:213   发布时间:2016-04-17 13:30:28.0
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不就行了么?只要格式对
  相关解决方案