I was curious if it was possible to store values into excel spreadsheet cells? And if so, how would one go about completing this? I also have multiple values that I would like to store into the same excel sheet but in different cells (like A2 or B1).
For example, say that I have a value that I want to stick into cell A1, right now, I can actually using this command:
<echo append="true" file="file.xls" message="1" />
This will store "1" in cell A1 and if I ran the same command again, it would store "1" in cell A1 as well, just next to the original echo. But I want is to have another value that's added in a different cell.
I've looked at other stackoverflow posts about this topic and searched google, but I couldn't find an answer to my exact case. Please let me know if you have any better ideas, thanks.
Here are the links that I used:
Excel is not a trivial file format to parse and write.
The following example demonstrates how to create a macro that writes an excel file:
The macro uses the Apache POI java library.
Example
Running the build will generate an excel file
Additional notes:
build.xml