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
  • 相关阅读:
    IntelliJ IDEA错误: 源值1.5已过时,将在未来所有版本中删除
    AcWing 311. 月之谜 数位dp
    AcWing 306. 杰拉尔德和巨型象棋 计数类DP
    AcWing 296. 清理班次2 线段树优化dp
    luogu P3052 [USACO12MAR]Cows in a Skyscraper G
    luogu P5664 Emiya 家今天的饭 容斥+dp
    AcWing 289. 环路运输 滑动窗口单调队列优化
    AcWing 288. 休息时间 滚动数组+分类讨论
    AcWing 287. 积蓄程度 树形dp,换根
    luogu P3842 [TJOI2007]线段 线性dp
  • 原文地址:https://www.cnblogs.com/crazybird/p/1267304.html
Copyright © 2011-2022 走看看