Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes Problem in Export to Excel using Jexcel api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem in Export to Excel using Jexcel api" Watch "Problem in Export to Excel using Jexcel api" New topic
Author

Problem in Export to Excel using Jexcel api

Padmalatha Kontham
Greenhorn

Joined: Jun 21, 2007
Posts: 6
Hi,

Iam implementing Export to Excel functionality using Jexcel api in my dynpage coding.

Say I have given excel sheet name as MySampleExcel.xls in the coding.

1. I click on Export to Excel button - > open, an excel sheet is opened with the values exported to it from the backend.
2. If you see the excel sheet name in the top left corner, it is displaying as MySampleExcel(1). Next time, when you open , it is displaying MySampleExcel[2]. If you try to do "Save As" under File menu, it is saving with the numbers at the end of filename which is something like:

MySampleExcel[2]
MySampleExcel[3]
MySampleExcel(1)

It is randomly generating these numbers.

What could be the problem? Please suggest.

Regards,
Padmalatha.K
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
My guess would be that the browser sees that a file called MySampleExcel.xls already exists, so it gives it a new, distinctive name in order to avoid overwriting the existing one.


Ping & DNS - my free Android networking tools app
Padmalatha Kontham
Greenhorn

Joined: Jun 21, 2007
Posts: 6
Hi,

We tried to clear the cache but no luck.
Could you please suggest some other options?

Regards,
Padmalatha.K
Padmalatha Kontham
Greenhorn

Joined: Jun 21, 2007
Posts: 6
Hi,

The issue is happening with the IE Browser. we have no issue when we click on " export excel " > " save".

we find the issue ( observation ) only when we click on " export excel " > "open".

filename(n).xls gets opened.

can we make it as filename.xls?.

Please Suggest.

Thanks in Advance.

Regards,
Padmalatha.K
Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211


There's so much to learn in this industry, and not everybody has the necessary interest.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Export to Excel using Jexcel api
 
Similar Threads
How To compare two excel sheets using java
importing data from database to excel sheet through JExcel Api
Using JExcel API to create Excel sheet.
Problem with JExcel API
Display Excel on browser & read the edited Excel sheet using Java?