I am using an Excel template for a report and there is a fixed image (logo) that I would like to repeat in each row of a band. So if I have 10 records, then I want the image repeated 10 times. I have inserted the image into a Cell in Excel in a name region for a band, but when the report runs, the image only appears once.
Does the Excel reporting library replicate the embedded images for each row in a band ?
How do I do this ?
As a workaround you may store the picture somewhere in the project. Then return it as FileDescriptor or as byte array in the band data and display it in the report using proper field formatter: ${image:<Width>x<Height>} or ${imageFileId:WxH}
For the customers using the Report Editor tool, they want a simple way to put an Image on an Excel cell which will shift down accordingly, with the addition of number of rows above. And they want to generate this into an PDF.
E.g like a logo at the end of a statement. But they don’t have a way to upload the required logo or image to use in the Excel template.
Adding a fixed static image to each row is not a common case, so it is not something that we prioritize at the moment
However, I have added this issue for the October release. If we have sufficient time and resources, we will consider addressing this in Jmix 2.4 or YARG.