• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Edit an Excel File with Java

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried this library jxl.etc and found that it can *create* an excel file but
if you have an excel file file which already exists and want to modify it then you are out of luck.

Seems that you have Workbook objects and WritableWorkbook objects.



This last line is what doesn't work - sheet.change_the_value_in_a_Cell(strNewValue, strCellPosition);

If I work with Workbook, I can only read it as in the code above.
If I work with WritableWorkbook I can write something, but I have to create the workbook anew each time.

Aside from POI from apache is there any other way to modify an already existing Excel file??

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic