> is there the possibility to retrieve design informations 
> about a graphic object, such an image?

Surfing with Google, I have found a solution:

JasperReport jr = (JasperReport) JRLoader.loadObject("MyReport.jasper");
JRBand jb = jr.getDetail();
JasperElement je = jb.getElementByKey("image-1");

// Expression...
System.out.println(((JRImage)je).getExpression().getText());

// Width and Height...
System.out.println(je.getWidth());
System.out.println(je.getHeight());

I hope this is useful for someone ;-)

        Vincenzo


_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to