David0603 All American 12764 Posts user info edit post |
Using java. I need to parse out information, do some modifications, and then add in some more info. This was easy when using csv files but not sure the best way to do it with xls files.
[Edited on September 17, 2007 at 4:24 PM. Reason : stupid title!!!] 9/17/2007 4:05:34 PM |
MiniMe_877 All American 4414 Posts user info edit post |
try this: http://jexcelapi.sourceforge.net/
or maybe Apache POI http://poi.apache.org/
we use the MS Office .NET interop assemblies at work to do the same thing via .NET
[Edited on September 17, 2007 at 4:42 PM. Reason : x] 9/17/2007 4:39:46 PM |
David0603 All American 12764 Posts user info edit post |
Ooooh. Those look promising. I'll check them out when I get home later. 9/17/2007 4:47:50 PM |
qntmfred retired 40726 Posts user info edit post |
message_topic.aspx?topic=494223#10735158
so are you using excel or java?
[Edited on September 18, 2007 at 12:07 PM. Reason : post ] 9/18/2007 11:50:49 AM |
David0603 All American 12764 Posts user info edit post |
I'm not sure why you posted the thread from which I linked.
I'm using java to parse the excel file. 9/18/2007 12:00:23 PM |
qntmfred retired 40726 Posts user info edit post |
i posted the link to let people in this thread know why i was bringing up excel
that makes sense though. i thought maybe you were trying to use excel to parse xml. didn't occur to me that your excel file was the xml format 9/18/2007 12:06:58 PM |
David0603 All American 12764 Posts user info edit post |
I'm not using xml. I mistyped. 9/18/2007 12:11:01 PM |
qntmfred retired 40726 Posts user info edit post |
oh, i see now. durr. i read xls as xml
[Edited on September 18, 2007 at 12:13 PM. Reason : no wonder the stupid title edit didn't make sense] 9/18/2007 12:13:04 PM |
David0603 All American 12764 Posts user info edit post |
Yeah, I suck... 9/18/2007 12:14:56 PM |
pai Starting Lineup 97 Posts user info edit post |
http://jexcelapi.sourceforge.net/ is really easy to use and works great except for updating an existing xls. Thats the only problem that I had when I used it an year ago. I hope it is better now. 9/18/2007 3:48:56 PM |
David0603 All American 12764 Posts user info edit post |
How is it great if it can't update existing excel? 9/18/2007 4:36:36 PM |
pai Starting Lineup 97 Posts user info edit post |
I had to primarily read/generate big xls files with good formatting (multiple sheets, colors and merged cells). jexcelapi was very quick and simple, hence great. As for updating the xls, I read the contents and wrote it to another file and then made/added the changes, followed by file rename to original file name. It is a bit difficult if you have too many formula, formatting and merged cells. 9/18/2007 5:04:53 PM |