I have written a servlet for downloading .doc or .xls files to the client when the client clicks on a link. But, on the client side, the Open/Save dialog box appears twice. I would basically like to know whether the response.addHeader() statement or the response.setContentType() statements result in the Open/Save dialog box appearing. BTW, the link for downloading the Word/Excel files are inside Flash (.swf) files.
Well, I have solved the problem by commenting the response.setHeader line. But now, the problem is that it is displaying a Page Not Found error on certain client machines, while it downloads properly on other client machines. Wonder if this has got anything to do with IE settings?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com