Page 1 of 1

repeat tag. Do I need MergeDocx ?

PostPosted: Mon Feb 07, 2011 8:42 pm
by beric
Hello,

I've created a document with "od:repeat" tag bound to a custom XML part as indicated in the "Conventions" document.
To generate to document, I called :
Code: Select all
OpenDoPEHandler.preprocess(wordMLPackage);


However, it does not work. When I open the resulting document in Word, the part which was in the "od:repeat" block has been deleted. The tags are also deleted.
Also, I get the following message on the standard output:
Code: Select all
You need a docxFetcher (and the MergeDocx extension) to fetch components


Do I need the "MergeDocx" extension to perform this operation ? Is there a way to try this extension before purchasing it ?

Regards,

Eric

Re: repeat tag. Do I need MergeDocx ?

PostPosted: Mon Feb 07, 2011 10:46 pm
by jason
beric wrote:However, it does not work. When I open the resulting document in Word, the part which was in the "od:repeat" block has been deleted. The tags are also deleted.


That would happen if it evaluated to repeat zero times. Check the relevant XPath?

If it continues to happen pls post a sample docx zipped up, or email it to me.

Do I need the "MergeDocx" extension to perform this operation ? Is there a way to try this extension before purchasing it ?


No, you only need it to "fetch components" ie include another docx in your document, using od:component tag. You need it in that case, because it contains the code which merges the documents.

Yes, you can trial MergeDocx - just send me an email - but its not relevant to your current problem.

ps I will move this topic to the databinding sub forum in the next day or so...

Re: repeat tag. Do I need MergeDocx ?

PostPosted: Sun Feb 13, 2011 11:35 am
by jason
As per the other thread, you may wish to use a recent nightly build so this message is not displayed unless relevant.