karurkarthi / xdocreport

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

how to dynamically add images in a nested loop (in template.docx) with xdocreport and velocity #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
please i am trying to add images in my template.docx using a nested loop.
how can i do this. 

thank for your help. 
i use xdocreport 1.0.2 and velocity.

Original issue reported on code.google.com by archipau...@gmail.com on 5 Mar 2014 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
please attach a java main which works. Your ExportTemplate.java doesn't compile 
(for instance it misses getImageproviderByOrientationAndProjection)

Original comment by angelo.z...@gmail.com on 5 Mar 2014 at 9:17

GoogleCodeExporter commented 9 years ago
ok, I add the main class thank.

Original comment by archipau...@gmail.com on 5 Mar 2014 at 10:30

Attachments:

GoogleCodeExporter commented 9 years ago
I made ​​some changes in the main class. I think normally it compiles.

Original comment by archipau...@gmail.com on 5 Mar 2014 at 2:09

Attachments:

GoogleCodeExporter commented 9 years ago
Your sample doesn't work (NPE in IGraph when I execute it, it misses the code 
of the generated report).

Your problem is because of your second foreach which doesn't starts with '#'. 
Your mergefield must contain : 

------------------------------------------------
#foreach($orientation in $structure.orientations)
------------------------------------------------

Next time, please take time to discover your basic problem yourself and please 
take time to attach Java classes which works.

Thank's

I close this issue.

Original comment by angelo.z...@gmail.com on 5 Mar 2014 at 3:19