最近一直被flex的dg保存到xls文件困扰,今天终于解决了。
首先看一下代码:
/* 输出xls新方法
=========================================
=========================================
*/
import mx.controls.dataGridClasses.DataGridColumn;
import com.as3xls.xls.Cell;
import mx.collections.ArrayCollection;
import com.as3xls.xls.Sheet;
import com.as3xls.xls.ExcelFile;
private var fileReference:FileReference;
private var xls:Class;
private var sheet:Sheet;
[Bindable]
private var fields:Array = new Array();
private fu