当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 相信大家会经常遇到需要在web页面上给用户生成excel报表的情况。
 

 

    摘要:要学习winform编程,关于软件自动升级的部分,今天一早就在csdn上找资料,终于有点概念了。 发现了一个不错的ftp站点,收藏了ftp://202.107.251.26 ......
    摘要:大家都知道 splist对象有个属性 items ,在文档中是这样解释的 the items property of the splist class gets the collection of all items in the list. remarks返回当前 list中的所有的item对象集合 the items property returns all the files in a ......


servlet中生成提供下载的excel文档的例程和说明

相信大家会经常遇到需要在web页面上给用户生成excel报表的情况.我刚好在最近的工作中遇到了,

【程序编程相关:开始学习工作流方面的知识

【推荐阅读:如何获取MSSQLServer,Orac

下面是一个使用jxl包(一个开源的包)的实例. 【扩展信息:Asp.net连Access时:操作必须

  //servlet中生成提供下载的excel文档的例程,这里用的是jxl包,当然也可以用apache的poi包试试.

    public void dopost(httpservletrequest request,httpservletresponse response) throws

        servletexception,ioexception{

    /**

    ……

    **/

    

        outputstream os = response.getoutputstream();

        jxl.write.writableworkbook wwb = null;

        response.setheader("content-disposition",

                           "attachment; filename=" + fname + ".xls");

        response.setcontenttype("application/msexcel");

        wwb = workbook.createworkbook(os);

    /**


...   下一页
 ·tortoisesvn使用说明    »显示摘要«
    摘要:tortoisesvn:subversion客户端 1. 引言 · 团队开发? · 修改文件而他人也在改?你修改的内容丢失? · 保存了文件可又后悔了?想得到几天前的版本? · 发现了bug,想知道bug何时引入的? 这些问题都遇到了?那就使用tortoisesvn吧。tortoisesvn是subversion的客户端。subver......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE