zoukankan      html  css  js  c++  java
  • ext的grid导出为excel 方法

    老外的方法:
    GridPanel to real Excel file(Only By IE5+,Windows,Office)


    What ?
    There is only one static function in the object Ext.ux.Grid2Excel ,
    You can use it anywhere to convert the data from a gridpanel to a local real excel file.

    Where ?
    It use a object(ActiveXObject("Excel.application") to create a real excel file,so it works at only windows platform with the office software installed.And then modifying the settings of the IE security to activate the activex may be necessary too.

    How ?
    Like this:
    Ext.ux.Grid2Excel.Save2Excel(grid);

    Core Code List and Demo

    grid2excel.js:
    Code

    Demo :

    Code
    .代码下载:https://files.cnblogs.com/crazybird/grid2excel.rar
  • 相关阅读:
    HAVING用法详解
    spring的定时任务
    js 将json字符串转换为json对象的方法解析
    Struts2 SSH整合框架返回json时,要注意懒加载问题
    Struts2 本是非单例的,与Spring集成就默认为单例
    Android 判断当前联网的类型 wifi、移动数据流量
    Android 动画的重复播放
    Android 监测手机联网状态 wifi、移动数据流量、无联网状态
    Android 设置界面的圆角选项
    Android 用Activity的onTouchEvent来监听滑动手势
  • 原文地址:https://www.cnblogs.com/crazybird/p/1267304.html
Copyright © 2011-2022 走看看