Results 1 to 2 of 2
  1. #1
    Padmalatha is offline Member
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    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

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    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.

Similar Threads

  1. Replies: 1
    Last Post: 10-10-2008, 09:47 AM
  2. Replies: 0
    Last Post: 06-21-2008, 11:53 AM
  3. export to excel
    By diana glz in forum Advanced Java
    Replies: 0
    Last Post: 03-14-2008, 12:01 AM
  4. export to excel
    By diana glz in forum New To Java
    Replies: 0
    Last Post: 03-13-2008, 10:26 PM
  5. Export excel issue
    By sanjay_sharma77 in forum Advanced Java
    Replies: 0
    Last Post: 01-10-2008, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •