you can do this as a comma separated or tab separated stream of text prepared on the client then sent to a very simple jsp page on the server which bounces it back as a response with the file name and mime type set correctly so the client gets a download file dialog from the browser. We do this with Excel and Word files from our app and use a single jsp page to do the bounce. I don't see the advantage of using HTML as a file format in this case.
hth Simon --- In flexcoders@yahoogroups.com, "ilkka.kudjoi" <[EMAIL PROTECTED]> wrote: > > Hi, > > we do have a flex application running on a server using .NET C# over > FluorineFX. We need to export tables in Excel, so I suppose should > create text file containing a html table and set it's mime type to > Excel so that the file would open in Excel as default. > > Is there any means of creating the file in the client and letting the > user download the file as it was coming from the remote server? If it > would be possible to create the file in client, it would be > preferable due to performance issues. Note, that I do not wan't to > access user's file system directly, only provide the user a dialog > where he/she can choose, where to save the file. > > If this is not possible, what practice would you suggest to handle > the case in server? So far I've googled that it should be possible to > create a file on the server, send the URL to the client and then use > FileReferencer class to download the file, but I found this solution > unpreferrable, because the file needs to be accessed only once and > only by the current user - no-one else, so I found saving the file in > server's filesystem not a good choice. > > I really appreciate your advice, > BR Ilkka >