<p>Hello. Does anyone know, how can i fetch all Images (embed , url etc) from rptdesignfile? Im looking for this 3 hours. I couldnt fetch all Images in report file. </p>
<pre class="_prettyXprint _lang-">
IReportRunnable design ...
.
.
.
ReportDesignHandle reportHandle = (ReportDesignHandle) design.getDesignHandle();
SlotHandle shBody = reportHandle.getBody();
List allImagesList = shBody.getContents();
for (Object obj : allImagesList) {
if (obj instanceof ImageHandle) {
ImageHandle imgHandle = (ImageHandle) obj;
System.out.println("Name: " + imgHandle.getName());
System.out.println("ID: " + imgHandle.getID());
System.out.println("Image Name: " + imgHandle.getImageName());
System.out.println("Help: " + imgHandle.getHelpText());
System.out.println("Souce: " + imgHandle.getSource());
System.out.println("Height: " + imgHandle.getHeight());
System.out.println("Width: " + imgHandle.getWidth());
System.out.println("Expression: " + imgHandle.getValueExpression());
}
</pre>
<p>I also tried some tricks on this link.</p>
<p>
<a data-ipb='nomediaparse' href='
http://www.eclipse.org/forums/index.php/t/120524/'>http://www.eclipse.org/forums/index.php/t/120524/</a></p>
<p> </p>
<p>reportHandle.getAllImages() returns just Embedded Images in Report. But I need to fetch all Images in except Logos etc in Header and Footer Tags. I would be grateful for any help.</p>