Have you tried this with another browser or with another computer. SOUnds like there is an issue with your computer. The browser performs the action that it is set up to do. If it knows the file type, it tries to open it with the default program.
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