Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一份带有子报告的主报告。
在主报告中为每个字段显示单个值,但在子报告中动态获取的值和多个值。
在子报告中,我需要循环显示图像数量。
如何在 ireport/jasper 报告中应用它?
喜欢
这些图像在子报告中动态出现。
请建议..
您需要将子报表设置为使用多列并水平填充。
您必须动态地将图像转换为 InputStream。然后将图像标签值表达式设置为此输入流字段。
IE
InputStream inputStream= Convert your image to inputstream// yourSampleJavaBean.setImage(inputStream);
现在使用 yourSampleJavaBean.image 变量作为图像表达式值。它将随每一行动态更改图像。