That was very helpful of yours. When I export as the code above, is the file getting saved to the web server or the clients computer? I am confused because right now I am using the localhost and client and servers machine is the same thing. If it is getting saved in the client, then it is fine. Otherwise, is it possible to save the file in a session instead of the server's local file system and download it? I am asking this because I dont want person B to open the file created by person A. Please tell me how I can achieve this. What I want to do is, when the person clicks the export button, the file gets downloaded to the clients machine. thanks Post edited by: rdx, at: 2006/11/17 18:43