I've used Apache POI for doing Spreadsheets as well: using the Horrible SpreadSheet Format (HSSF) libraries. I appreciate those non-business-friendly project names:
"The name was originally an acronym for "Poor Obfuscation Implementation", referring humorously to the fact that the file formats seemed to be deliberately obfuscated, but poorly, since they were successfully reverse-engineered." (http://en.wikipedia.org/wiki/Apache_POI) No problems so far. We are able to open spreadsheets using Excel and Open Office. Only issue we encountered was that Excel and OO seem to use pivot tables differently, so we generated our template by hand using Excel, and then we populate the data programmaticaly using HSSF. The pivot tables are then usable in both Excel and OO. Johan. On Tue, Jul 15, 2008 at 10:11 AM, Brian Silberbauer < [EMAIL PROTECTED]> wrote: > > Hi Marius > > I have only heard of Apache POI for this kind of thing and have only > used it for excel documents. > > Is there a problem using it? > > Brian > > > On Tue, Jul 15, 2008 at 10:31 AM, Marius Botha <[EMAIL PROTECTED]> > wrote: > > > > Hi there > > > > I have a few clients who want to create documents in MS Word, then use > > them as templates (with tags in the body) for my code to then populate > > with values, almost like mail merge. It seems that by reading the file > > and just replacing the tags in the .doc file makes MS Word think the > > document is corrupt. RTF documents work fine, but makes the document > > too big in size, plus the client just wants a straightforward .doc > > doc. > > > > So, apart from the Apache POI project, any one done this before and > > have some ideas to make it easy? Or do I just go play with the > > previously mentioned project? > > > > Thanks > > > > Marius > > > > > > > > > > > -- > Brian Silberbauer > Independent Consulting > > +27 (0)83 566 2705 > skype: brian.silberbauer > http://www.gamatam.com/ > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~---
