Creating Parameters for IReport

1

I'm developing a Java Software where the user makes registrations. Each product registered can be printed. Each product can have multiple images and these images should be printed along with the data of the other products. There may be no picture. I would like in real-time to create parameters in forms to pass each image to be displayed in iReport and be able to be printed. Data is already being displayed. Only the images are missing. Can anyone help me?

    
asked by anonymous 07.12.2015 / 19:42

1 answer

0

The image needs to be passed as a BufferedReader by the Map parameter, reading the image from an ImageIO can make it easier.

No verification should be required to leave as optional, but check.

Within the .jrxml you will have to set a parameter by passing the name whose representation is the Map key, and the class in which it will represent Image, follows an example

<parameter name="CLIENT_IMAGE" class="java.awt.Image" isForPrompting="false">
    <defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>

As you have already passed other data in text, the image does not go very far from how it is done.

    
10.12.2015 / 02:44