This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to Edit an Excel File with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "How to Edit an Excel File with Java" Watch "How to Edit an Excel File with Java" New topic
Author

How to Edit an Excel File with Java

Dave Elwood
Ranch Hand

Joined: Dec 27, 2002
Posts: 84
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??

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to Edit an Excel File with Java
 
It's not a secret anymore!