乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > Extjs操作Excel文件,前台页面和后台是怎么交互的,方...-excel导入extjs,excel怎么导入数据

Extjs操作Excel文件,前台页面和后台是怎么交互的,方...-excel导入extjs,excel怎么导入数据

作者:乔山办公网日期:

返回目录:excel表格制作


var cm = new Ext.grid.ColumnModel({
columns: [
new Ext.grid.RowNumberer(),
{ header: '单位', dataIndex: 'Cityname', sortable: true, width: 130, align: 'center' },
{ header: '万元', dataIndex: 'TOTALCOST', width: 130, align: 'center' },
{ header: '公里e5a48de588b6e79fa5e98193365', width: 100, dataIndex: 'NEWLNE', align: 'center' },
{ header: '公里', width: 100, dataIndex: 'UPDATELINE', align: 'center' },
{ header: '台', dataIndex: 'NEWBYQ', sortable: true, width: 100, align: 'center' },
{ header: 'kva', dataIndex: 'NEWRL', sortable: true, width: 100, align: 'center' },
{ header: '台', dataIndex: 'UPDATEBYQ', sortable: true, width: 100, align: 'center' },
{ header: 'kva', dataIndex: 'UPDATERL', sortable: true, width: 100, align: 'center' },
{ header: '个', dataIndex: 'NEWTQ', sortable: true, width: 100, align: 'center' },
{ header: '个', dataIndex: 'UPDATETQ', sortable: true, width: 100, align: 'center' },
{ header: '台', width: 110, dataIndex: 'JP', align: 'center' },
{ header: '公里', width: 100, dataIndex: 'DLLINE', sortable: true, width: 100, align: 'center' },
{ header: '', width: 100, dataIndex: 'KBS', sortable: true, width: 100, align: 'center' }
],
rows: [
[{}, {}, {}, { header: '10kV及以下', colspan: 11, align: 'center'}],
[{}, {}, { header: '总投资', align: 'center' },
{ header: '新建10KV线路', align: 'center' },
{ header: '改造10KV线路', align: 'center' },
{ header: '新增配电变压器', align: 'center' },
{ header: '新建容量', align: 'center' },
{ header: '改造配电变压器', align: 'center' },
{ header: '改造容量', align: 'center' },
{ header: '新建台区', align: 'center' },
{ header: '改造台区', align: 'center' },
{ header: 'JP柜', align: 'center' },
{ header: '电缆线路', align: 'center' },
{ header: '开闭所', align: 'center' }
]]
});

给你个简单的可以参考着做

所谓三天不练手生。

更实用,对理解和应用的操作方法更有利。

其实什么事情都是这样,所有的理论知zhidao识应为实际工作服务。一些纯理论经不起推敲。

但是,你可以问的每一天,看,看大家谁在工作中遇到的问题,大家都在用什么方法解决。这也被认为是一种很好的学习方法。因为我们遇到的实际问题,也解决实际问题的比较可行的方式。
只能给你个几个参考,当然还有其他方法,希望能够帮到你 望采纳
getobject函数 本质是打开的,只是看不到窗口
Dim wb as workbook
set wb = getobject(具体路径+文件)
with wb
.............(operation on wb)
end with
wb.close false
set wb=nothing

首先这个功能与ExtJS没关系,直接用javascript操作excel,然后写入到excel的grid中去

看看这个帖子 http://www.blogjava.net/fool/archive/2006/06/27/55285.html

相关阅读

关键词不能为空
极力推荐

ppt怎么做_excel表格制作_office365_word文档_365办公网