?
Solved

Open file

Posted on 2004-04-22
8
Medium Priority
?
183 Views
Last Modified: 2010-04-01
Hi Experts,

I have <%@ page contentType="application/excel"%>
I see popup open , save as ....

When I open it is opened as Word not excel
When I do save as it has in file type " JavaServer pages.

How do I open it as Excel in browser ?
How do I make sure in file types "xls (excel)" appears ?

Thank you.
0
Comment
Question by:fpoyavo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 
LVL 1

Author Comment

by:fpoyavo
ID: 10892910
I was able to open it. But the problem is that is CSV file and when it is opened in Excel there are cells but
data is not split. I have rows only.

Please help.
0
 
LVL 1

Expert Comment

by:seanrowen
ID: 10893813
Try using a content type of "application/vnd.ms-excel", or better, "text/csv".

If it is not showing up as expected in Excel, then open the .csv file with a text editor and see if there is a problem with the CSV data. Maybe there are no line breaks? or the line breaks are not recognized? That is my guess.
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 10895368
I do have line breaks but Excel does not format cells using commas.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 32

Accepted Solution

by:
ldbkutty earned 2000 total points
ID: 10917597
>When I open it is opened as Word not excel
>When I do save as it has in file type " JavaServer pages.

>How do I open it as Excel in browser ?

You can use the file name along with the extension in your jsp program, say for example,

"examplefile.xls" or "examplefile.csv" so that it can be saved with the appropriate format, even though the file type is described as '.jsp'.

BTW, i have a similar application for EXCEL downloading and displaying in browser.
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10927928
This might be a useful hint to verify your program...
http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_20842012.html

otherwise, post ur full code here...
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10953269
Are you successful !?
0
 
LVL 32

Expert Comment

by:ldbkutty
ID: 11132014
well, i do hope that my posted link might be a helpful hint for the author...if not, am sorry.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question