Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-19-2008, 05:14 AM
Member
 
Join Date: Nov 2008
Posts: 1
Rep Power: 0
Padmalatha is on a distinguished road
Default Problem in Export to Excel using Jexcel api
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?

Regards,
Padmalatha.K
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-19-2008, 08:09 AM
Senior Member
 
Join Date: Jun 2008
Posts: 902
Rep Power: 2
masijade is on a distinguished road
Default
Because the browser is caching a copy, so the next time it loads the thing (and it is being delivered new, it is not reading the cahce), it attempts to cache it again, but something else already has the same name, so it adds a one up number, in order to give it a unique name.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert date field read from Excel using JExcel to database saran123 Database 1 10-10-2008 08:47 AM
Not able to download excel sheet from client mechine using Struts and JExcel muralimohanbikki Advanced Java 0 06-21-2008 10:53 AM
export to excel diana glz Advanced Java 0 03-13-2008 11:01 PM
export to excel diana glz New To Java 0 03-13-2008 09:26 PM
Export excel issue sanjay_sharma77 Advanced Java 0 01-10-2008 03:47 PM


All times are GMT +2. The time now is 02:29 AM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org