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
  • 相关阅读:
    [CISCN2019 总决赛 Day2 Web1]Easyweb
    [极客大挑战 2019]Upload
    [SUCTF 2019]EasyWeb
    2020/2/1 PHP代码审计之任意文件读取及删除漏洞
    2020/1/31 PHP代码审计之文件包含漏洞
    [Luogu P1120]小木棍·加强版
    学习笔记·堆优化$mathscr{dijkstra}$
    [LuoguP1462]通往奥格瑞玛的道路($SPFA+$二分)
    [USACO08JAN]电话线$Telephone Lines$(图论$+SPFA+$ 二分答案)
    [USACO06NOV]玉米田$Corn Fields$ (状压$DP$)
  • 原文地址:https://www.cnblogs.com/crazybird/p/1267304.html
Copyright © 2011-2022 走看看