Solved

Open file

Posted on 2004-04-22
8
177 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now