bellakhalAmir / xdocreport

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

TextField, Image and table header in list #385

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I need to create a report with a table fill with Objects of a list.

Every object is describe with three row of table:
1. First row description + image
2. Some header table (Code, quantity, name, etc)
3. Text field of object (code object, quantity object, etc)

Like this:

object.description                            | object.image
Code     |   Quantity |      Name |     Price | Total
obj.code |  obj.quant |  obj.name | obj.price | obj.totale

I follow the example of "DocxProjectWithFreemarkerAndImageList.java" to create 
the metadata with the image of different objects, but when I try to insert in 
my docx the object image, inside the loop, every object is repeated as many 
times as are the images included in metadata.

How can I put in every row only the image of the current object?

I attach two file with the code!

Thanks

Original issue reported on code.google.com by KatiBe...@gmail.com on 21 Mar 2014 at 2:14

Attachments:

GoogleCodeExporter commented 8 years ago
It's very hard to help you with your info. Please attach a very simple Java 
main + docx + images (in other words an eclipse project which works) which 
causes your problem.

Original comment by angelo.z...@gmail.com on 21 Mar 2014 at 2:18

GoogleCodeExporter commented 8 years ago
My code is part of a complex jsp page and I extract only the part to create the 
report:

Java code to fill the report
Java class of Object
docx example

I hope they will be fine!

Thanks

Original comment by KatiBe...@gmail.com on 21 Mar 2014 at 2:32

Attachments:

GoogleCodeExporter commented 8 years ago
And this an example of output

Original comment by KatiBe...@gmail.com on 21 Mar 2014 at 2:36

Attachments:

GoogleCodeExporter commented 8 years ago
No sorry, I cannot help you with your attachment. I need to generate your 
report to see your problem and I have no time to understand your report and 
create a simple Java main with your context. Without a simple Java main, I 
cannot help you.

Original comment by angelo.z...@gmail.com on 21 Mar 2014 at 2:39

GoogleCodeExporter commented 8 years ago
Thanks anyway.
I solved it by using an image list associated with an item and scrolling for 
each item only its list of images. 
What I needed was just a method of association between item and associated 
image.

Original comment by KatiBe...@gmail.com on 21 Mar 2014 at 4:05

GoogleCodeExporter commented 8 years ago
Glad that you have fixed your problem.

Next time, please attach a simple java main+docx. I could help you more.

I close this issue.

Regards Angelo

Original comment by angelo.z...@gmail.com on 22 Mar 2014 at 8:32