简体   繁体   中英

Export Datagrid values to Excel in flex3

Datagrid with 3 columns namely Name,Place and Country. In order to export these columns values to Excel sheet by Clicking a Button called 'Export to Excel'. When Click this button, the values in datagrid is exported in excel sheet. If anybody know this, Please give some samples. Thanks in advance.

You can make a CSV file, by making a loop running through each columns and line.
Separate colums with ";" and each line with "\\n"

Then, you can import the CSV file into Excel, it should work out of the box.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM