Martin,

>  i would like to know if there is a way to export my data 
> from a data grid to a .xls file ......

Sure you can, but not with an MXML tag or ActionScript 2.0
code.  If you are using J2EE as your server-side, then you
need to create a Java class that given your datagrid data,
spews it into an XLS file.  There are numerous ways of
doing this for Excel; do a search on Java and Excel, or
take a look at the following Apache Jakarta project:

http://jakarta.apache.org/poi/

which provides you with aa Java API to read/write Microsoft
format files.

If you write a service that writes an Excel file, it is
then trivial to take the data from a datagrid, package it
into a client-side ActionScript object representation,
and use RemoteObject tag to invoke your server-side 
service that uses POI or similar to write to the file
format.

So ... achievable, but you'll need to do this across 
multiple tiers of a Flex app (Presentation, client-side
business tier and server-side business tier) rather than
in a single piece of code.

Hope this provides you all the hints you need to go and
do an implementation ... I don't have any code to share.

best,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to