Solved

Open file

Posted on 2004-04-22
8
182 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
Technology Partners: 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 500 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

Industry Leaders: 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!

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

726 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