File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Excel in MSIE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Excel in MSIE" Watch "Excel in MSIE" New topic

Excel in MSIE

raj edla

Joined: Apr 24, 2004
Posts: 2

I am having a problem in opening a csv(comma separated file or even a xls file) in browser.
what I am trying to do is on the click of a button I should get a new browser window and excel embedded into it and I should be able to see my data in it.
But eventhough I set my content type to 'application/' it opens up a window and shows the data as if it was a text file.
I really appreciate any help

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
I haven't verified your content type setting, and this might seem like a really simple question, but have you verified that Excel (.xls) documents open in the web browser on the computer you're testing this on? I also assume you're using MSIE (Firefox doesn't seem to display CSV files in anything other than plain text format).
I agree. Here's the link:
subject: Excel in MSIE