MohamedSaeed / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

No object values are loaded in context velocity after some changes in template file docx. #335

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all,
I searched the web but I found nothing.
My problem is:
When I made ​​changes in my template file. Docx, the context can not load 
the values ​​of objects in my template.
But when I create a new template with the same objects, the value is returned 
and no error is reported.

Thanks in advance,

Original issue reported on code.google.com by nadirmez...@gmail.com on 27 Nov 2013 at 10:28

GoogleCodeExporter commented 9 years ago
Just one question, do you use mergefields to set your Velocity syntax? If not, 
I think it's your problem.

Original comment by angelo.z...@gmail.com on 27 Nov 2013 at 10:31

GoogleCodeExporter commented 9 years ago
Hi,
Yes, for example: $myObject.getName().
And i have the same problem when I  use a simple object for example:
context.put("name","name")
context.put("lastName","xxxxx");
in thes docx i have this :
Name : name
Last Name: $lastName

Original comment by nadirmez...@gmail.com on 27 Nov 2013 at 10:39

GoogleCodeExporter commented 9 years ago
Please attach your docx+java main or dumper 
https://code.google.com/p/xdocreport/wiki/XDocReportDumper

Original comment by angelo.z...@gmail.com on 27 Nov 2013 at 10:48

GoogleCodeExporter commented 9 years ago
I close this issue because I have none answer.

Original comment by angelo.z...@gmail.com on 5 Jan 2014 at 4:09