Sorry to say that I have no great knowledge of or experience with Cocoon so I
will not be able to say whether or not a particular API will work within
that framework, sorry. Guessing that you are working on a web-app however
does remove a number of options - OLE and OpenOffice amongst them - and I
unzipped and had a quick look at an OpenXML document last night and can see
what your problems are even though I only dug around in the documents
styles!!

Anyway, got up early today and had a google around. Came across this;

http://openxml4j.org/ http://openxml4j.org/ 

Which, to quote from the web page, says it is;

"OpenXML4J is a Java library dedicated to the creation and manipulation of
Office Open XML (ECMA-376) and OPC based documents (for example Office 2007
Word, Excel and PowerPoint documents). OpenXML4J provides you a way to
create and manipulate Open XML documents for a bunch of scenarios without
using any office suite."

With luck, one of these scenarios will be merging documents.

There is a Micrsoft SDK that can be used to manipulate OpenXML documents but
it is limited to working within the .NET environment - so I am guessing that
target languages will be C# and the like. It is unlikely that it will work
with Cocoon but here is the link if you want to have a look at it;

http://www.microsoft.com/downloads/details.aspx?FamilyId=AD0B72FB-4A1D-4C52-BDB5-7DD7E816D046&displaylang=en
http://www.microsoft.com/downloads/details.aspx?FamilyId=AD0B72FB-4A1D-4C52-BDB5-7DD7E816D046&displaylang=en
 

With regard to Aspose, I have not used it myself but it certainly seems to
be a solid product and it has an enviable customer list. Further, it is hard
to find any negative comments about it and given that you can download an
evaluation copy, it will be a good place to start. Good luck with the
evaluation.


mblee wrote:
> 
> Hello, we are using docx, the zip structure with OpenXML. 
> 
> What I'm looking for is appending documents together, but there may be a
> need to insert data as well.  Dealing with the text alone is not a
> problem, but what I'm having difficulty is resolving all the references to
> styles, images, etc etc.  When I have multiple documents, it becomes a
> nightmare.
> 
> We are using Apache Cocoon, so if we can stick with Apache friendly and
> open source products would be ideal.  But if I have to get a third party
> software it wouldn't be out of the question.  
> 
> I am in the process of reviewing Aspose.  What is everyone's thought on
> this product?
> 
> 
> 
> 
> 
> MSB wrote:
>> 
>> Hello,
>> 
>> May I ask you a couple of questions please?
>> 
>> What format are the documents in? Are they in the binary .doc/.dot
>> (OLE2CDF) format or the newer xml based format (.docx).
>> 
>> What exactly do you mean by combining multiple Word documents? Are you
>> simply concatenating them together or do you take text out of one
>> document and insert it into another document, etc?
>> 
>> Are you restricted to identifying and using a 'free' solution or can you
>> spend some money on this project? I only ask as there are commercial
>> solutions that may allow you to do what you want - one that I have seen
>> used and heard discussed is published by a company called Aspose. Here is
>> a link to their site -  http://www.aspose.com/ http://www.aspose.com/ .
>> 
>> What sort of architecture are you after? I am guessing that you wish to
>> implement some sort of server based solution that clients can log on to.
>> If this is not the case and the application can run as a single user,
>> stand alone solution then there are further solutions you could look at -
>> OpenOffice is one that springs to mind as it has filters that allow it to
>> work with various document formats and an interface that supports a
>> variety of different porgramming languages. There are issues however with
>> using OpenOffice as a 'document server' in a mutli-user environment,
>> hence it lends itself best to stand alone applications. If you are using
>> Windows and working stand alone there is even OLE - flawed though that
>> solution may be.
>> 
>> A completely crazy idea, and this one depends upon your files being in
>> the newer .docx format, have you looked at the odftoolkit project - 
>> http://odftoolkit.org/ http://odftoolkit.org/ . It is targeted at
>> OpenOffice's implementation of the open document format which is a
>> compressed xml based document format. How closely that resembles the
>> .docx file format I do not know but it may be worth a very quick look.
>> 
>> 
>> mblee wrote:
>>> 
>>> Hello,
>>> 
>>> We are currently using Cocoon and need to combine multiple word 2007
>>> documents.  I’ve been familiarizing with POI but have not found anything
>>> concrete that can merge the documents.
>>> Any help is greatly appreciated.
>>> 
>>> -Betty
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Merging-word-2007-docx-with-POI-in-Cocoon-tp22485502p22509991.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to