Reputation: 5192
I have one master report with sub report.
in master report display single value for each field but in sub report value fetched dynamically and multiple values.
in sub report i need to display num of images in loop.
how to apply this in ireport/jasper report ?
like
these images coming dynamically in sub report.
Please suggest..
Upvotes: 1
Views: 2843
Reputation: 9390
You'll need to set the subreport to use multiple columns and to fill horizontally.
Upvotes: 1
Reputation: 2940
You have to convert your images to InputStream dynamically. Then set image tags value expression to this input stream field.
i.e
InputStream inputStream= Convert your image to inputstream//
yourSampleJavaBean.setImage(inputStream);
now use yourSampleJavaBean.image variable as image expression value. It will change the images dynamically with each row.
Upvotes: 1