StimVinsh / xdocreport

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

Problem with image and complex tables #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Using xdocreport 0.9.6
2.Use nested objects as data sources
3.Set different images per row

What is the expected output? What do you see instead?
I want to replace the palceholder (red box) with the content of an external 
image (mostly png). It looks like, that either no or all images are replaced. 

What version of the product are you using? On what operating system?
0.9.6 - Win 7

Please provide any additional information below.

Original issue reported on code.google.com by wilko.ve...@gmail.com on 19 Mar 2012 at 9:29

GoogleCodeExporter commented 8 years ago
Sry. I've applied the wrong example. That should be better.

Original comment by wilko.ve...@gmail.com on 19 Mar 2012 at 9:35

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

Coud you please attach the Java code sample + Java context. It will help us a 
lot to try quicly your sample.

When I see your sample. Have you tried to use FieldsMetadata like this?

--------------------------------------------------------
metadata.addFieldAsImage("image", "question.Image");
--------------------------------------------------------

For your information, you cannot set a Null image. I think the image feature 
should be improved to support Null image (Null Inputstream image=>doesn't 
generate image).

Regards Angelo.

Original comment by angelo.z...@gmail.com on 20 Mar 2012 at 12:26

GoogleCodeExporter commented 8 years ago
Hello Angelo,

yes I tried FieldsMetadata. I guess I am doning something wrong.

Attached you'll find a simplified version of my code. You have to apply pathes 
to template and output file as args and I guess you have to adjusted the 
hardcoded part within Question.java.

Best regards 

Wilko

Original comment by wilko.ve...@gmail.com on 20 Mar 2012 at 4:41

Attachments:

GoogleCodeExporter commented 8 years ago
Hi v,

I don't understand. I have tried your sample and it works great?
I have attached my test which works well. In this test I use 
ClassPathImageProvider, but I have tested too with FileImageProvider which 
works well.

Regards Angelo

Original comment by angelo.z...@gmail.com on 21 Mar 2012 at 2:51

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 27 Mar 2012 at 9:40