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
  • 相关阅读:
    U10783 名字被和谐了
    P1151 子数整数
    P2756 飞行员配对方案问题
    P3227 [HNOI2013]切糕
    BZOJ 2127: happiness(最小割解决集合划分)
    linux脚本初体验
    130902 周赛
    Citrix 服务器虚拟化之三十二 XenConvert
    数据字典统一管理,动态下拉框
    [置顶] oracle 数据库表中转换成java代码
  • 原文地址:https://www.cnblogs.com/crazybird/p/1267304.html
Copyright © 2011-2022 走看看