Others have already pointed out that this isn't something done on the client (besides Stephen's reply), but here's an example of using ColdFusion to accomplish this with a server call.
http://www.stretchmedia.ca/blog/index.cfm/2006/12/8/Export-to-Excel-with-Flex-20-and-ColdFusion HTH, Brendan On 8/30/07, essuark <[EMAIL PROTECTED]> wrote: > > Thanks for the reply Paul. Other than when the swf loads, there is NO > server side component like a websevice. It needs to be initiated from > the swf with data from with-in the swf.... > > > --- In [email protected] <flexcoders%40yahoogroups.com>, Paul > deCoursey <[EMAIL PROTECTED]> wrote: > > > > NavigateToUrl should work. This is really more of a general Web > > Development question though. The real work would need to be done > on the > > server in some sort of web application. You need to set the header > of > > the response to the correct mimetype so that the browser can decide > what > > to do with the file. You can also send headers to will instruct > what to > > use for a filename. I can't really provide much more guidance > without > > more details on what you are using server side, and that would > really > > bring us out of scope for this list. > > > > Paul > > > > essuark wrote: > > > Hello all, > > > > > > I have some simple data that I wish to export to Excel from my > flex > > > application. Basically I want to click a button and have > the 'Save As' > > > dialog on the browser appear, so the data is dynamic. This needs > to be > > > contained in the swf and not access a file somewhere on a server, > and > > > since there isn't file, I am not sure if can use NavigatetoURL. > In > > > short I wish to send or stream xml data to; I guess, another > browser. > > > So again, any ideas on how to send simple xml data, like > > > <Msg>Hello</Msg> and have the browser's save as dialog show up so > the > > > user can save it on their harddrive? > > > > > > Thanks > > > Ralph > > > > > > > > > > > > > > -- Brendan Meutzner http://www.meutzner.com/blog/

