What steps will reproduce the problem?
1.Just testing the template
2.I added a #foreach to my original template which was working fine before
3.I attached a java project (java main) and all the stuff to test (Template docx)
What is the expected output? What do you see instead?
I got a error message that says. Cannot be opened because there are problems with the contents, if I click on details I see:
Unspecified error:
Location: Part: /word/document.xml, Line: 1, Column:0
Later on, I clicked on "Ok button" and I see the following error message:
"Word found unreadable content in LabelBoxTemplate.docx_200120151134.docx. Do you want to recover the contents of this document ? if you trust the source of this document, click Yes.
After I clicked "Yes"; I can see the document in perfect way, therefore my problem is this annoying error message.
What version of the product are you using? On what operating system?
I'm on Windows, Microsoft Office Professional Plus 2010 version 14.0.7015.1000
xdocreport 1.0.5
Please provide any additional information below.
I'm using velocity for my template. The problem is the template.
The problem seems to be the "foreach;"
I add this: #foreach ( $LIST_LEGAL_ADVISING in $LIST_LEGAL_ADVISINGS )
and at the end of document this: #end.
Thanks you very much for your help in advance,
P.D: I added a zip file (LabelTest.zip) with a java main to test, you can locate at http://code.google.com/p/xdocreport/issues/detail?can=2&start=100&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=463 because it's no possible to add this kind of file here.