flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kessler CTR Mark J" <mark.kessler....@usmc.mil>
Subject RE: From ADG to Clipboard and Excel
Date Fri, 18 Jan 2013 17:25:28 GMT
   I do that with regular CTRL-C listening for the copy event to do on a row/cell basis.  I
also have function that copies all visible row/columns to the clipboard.

   On flex the setClipboard function only stores text data, but you can add HTML tags inside
to do basic formatting if you paste it in MS Excel.  Such as bordering, bold, headers... 
The AIR version of the function allows differenthttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/InteractiveObject.html#event:copy
clipboard types to be used.  Not all programs accept the HTML formatting automatically since
it has the text clipboard type.

   One point to note, the system clipboard has a security requirement that the user trigger
the action with a button or key combination to allow the action.



Copy event:


-----Original Message-----
From: Oleg Konovalov [mailto:olegkon@gmail.com] 
Sent: Friday, January 18, 2013 7:23
To: dev@flex.apache.org
Subject: From ADG to Clipboard and Excel


I need to add the following to my Flex4 (4.6) Web App:

1) being able to select some cells from AdvancedDataGrid
and copy it to Clipboard (to be able to paste to any file like
Word, Excel, CSV or text file

2) being able to export the whole ADG context to Excel.

Could you please suggest how to do it?
(read lots of posts, but honestly none useful)

Thank you in advance ,
View raw message