Hello,
i want to get the datasetname used by an Image for all images in a Reportdesign.
In a Report a Image Tag has a property for the dataset-name.
This value I need for every Image in the Report.
<image id="663">
<property name="height">218px</property>
<property name="width">366px</property>
<property name="dataSet">ChartDataset</property>
Then I tried to get the Dataset definied by the Image. But everything I try brings me only the List of embeeded Images in the Report, not the Image Elements in the Report.
final IReportRunnable design = [...]
final ReportDesignHandle reportDesignHandle = (ReportDesignHandle) design.getDesignHandle();
List allImages = reportDesignHandle.getAllImages();
for (Object o : allImages) {
if (o instanceof EmbeddedImageHandle) {
EmbeddedImageHandle h = (EmbeddedImageHandle)o;
String name = h.getName();
[...]
}
How can I get the Datasetname per definied Dynamic Image in the Report.
(Birt 3.7.1)