I want to insert an image into a report, so that it doesn't get lost if the location of the report or of the image itself changes. I'm working with iReport 3.5.2. How can it be done?
Thanks in advance,
Hi, As i said earlier, u can do this by first
1. opening the existing report in the IReport designer.
2. place repo:<resource_name> like below, observe the imageExpression element.
<image scaleImage="Clip" hAlign="Center" vAlign="Middle">
<reportElement x="0" y="10" width="515" height="70"/>
</imageExpression> <hyperlinkTooltipExpression><![CDATA["JasperReports Logo"]]></hyperlinkTooltipExpression> </image>
3. Upload the report from the jasperserver report wizard, also upload a image resource with the above resource_name.
Note: Now if the report is already uploaded to JasperServer, u can open the report present in the server from IReport using the JasperServer plugin and update the imageExpression and again make sure to upload a image resource with resource_name as resource name.
Post Edited by rmukkamalla at 07/24/2009 01:36