I think that the topic title says almost all about it, but I'll try to be more specific: I have a tomcat servlet which prints out a bunch of .doc files (which are created using JasperReports if this is important) and I need to take those files and put them all in a single file.
Googling around I found this "POI" project which seems to enable Java programmers to be able to manipulate Microsoft Office files (and so also .doc file) using their API, which I downloaded the last version. But I'm not really sure about how actually do this.
Here is what I was thinking to do, from a very high-level point of view:
- create an empty HWPF document
- read the first .doc file into another HWPF document
- copy the content from the last created document to the empty one
- read the second .doc file
- and so on...
Can any of you please help me understand how to implement this? Thank you very much in advance.