Flex中生成Excel
来源:互联网 发布:网络舆情监测员工资 编辑:程序博客网 时间:2024/05/19 16:38
场景:
flex生成Excel并保存到本地
要求:
[1] as3xls.swc 下载
[2] flash player 10及以上
代码:(FlashBuilder4.0)
<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"><fx:Script><![CDATA[import com.as3xls.xls.ExcelFile;import com.as3xls.xls.Sheet;private function exportExcel():void {var excelFile:ExcelFile = new ExcelFile();var sheet:Sheet = new Sheet();sheet.resize(10, 10);sheet.setCell(0, 0, "Today's date:");sheet.setCell(0, 1, new Date());excelFile.sheets.addItem(sheet);var mbytes:ByteArray = excelFile.saveToByteArray();var filerefer:FileReference = new FileReference();filerefer.save(mbytes,"demo.xls");}]]></fx:Script><s:Button x="219" y="161" label="生成Excel" click="exportExcel()"/></s:Application>
- Flex中生成Excel
- FLEX中导出Excel
- FLex中 DataGrid导出Excel
- FLex中 DataGrid导出Excel
- struts2 中生成excel
- EXCEL 中生成GUID
- android中生成excel
- android中生成excel
- android中生成excel
- Flex中动态生成表头
- flex中 AdvancedDataGrid、datagrid导出到excel
- flex 保存datagrid数据到excel中
- Flex通过Java读取Excel(详细流程)----Excel在客户端(DataGrid动态根据Excel生成)
- java中下载生成Excel
- Flex中LineChart自动生成线形图
- Flex中动态生成DataGrid以及动态生成表头
- flex 从DataGrid列表中导出数据为excel表格
- jsp中生成excel文件名修改
- JDK环境变量配置
- Flex 3.0 DataGrid组件列内容换行
- http://www.whitecell.org/forums/viewthread.php?tid=343
- spring入门 - Aware相关接口
- Android:Git、Repo、Gerrit服务器架构Android代码库
- Flex中生成Excel
- Android NDK开发之一hello world的可执行程序
- mysql Error 1130 远程连接访问 问题的解决方案
- php study note 2 --- basic syntax
- Access数据表导入到Sql server 2005
- JMS Apache ActiveMQ使用(1)
- 初学C++ container(容器) 顺序容器
- 10029 - Edit Step Ladders
- DeleteTree 函数