hi all, can anybody tell how to open/save/cancel a excel file. i want a pop up in which the pop up should contain open/save/cancel a excel sheet.Am using POI and getOutputStream. please help. thanks Shabarish
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
Are you setting the content type and Content-Disposition headers? Something like
when i generate the pop up the contents wil not be copied properly if i open excel sheet from pop up i'll get error message in excel sheet telling that file is damaged
Originally posted by Ulf Dittmer: Are you setting the content type and Content-Disposition headers? Something like
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
If you want to stream the file to the client, you don't need to write it to disk first. You can use POIFSFileSystem.writeFilesystem method to write it to the output stream directly. That would eliminate possible sources of problems (and be faster to begin with).
shabarish vai
Ranch Hand
Joined: May 26, 2008
Posts: 79
posted
0
HI, can you please explain me with few snippets it wil be helpfull thanks Shabarish
Originally posted by Ulf Dittmer: If you want to stream the file to the client, you don't need to write it to disk first. You can use POIFSFileSystem.writeFilesystem method to write it to the output stream directly. That would eliminate possible sources of problems (and be faster to begin with).
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
There isn't much to it. It would go something like this:
Also, please be a bit more careful with the CODE and QUOTE buttons. Somehow your posts contain too many of those where they aren't needed. There's also no need to quote the previous post in a response, unless you're referring to some specific part of it (in which case only that part should be quoted). [ July 03, 2008: Message edited by: Ulf Dittmer ]