This thead may help:
Here is a code snipit as well to try:
BufferedImage img = ImageIO.read(new File(wo_image_path));
height = img.getHeight();
width = img.getWidth();
jasperSubDesign = JasperManager.loadXmlDesign(context.getRealPath("/WEB-INF/reports/decoration_sheet_header.jrxml"));
JRDesignImage image = (JRDesignImage)jasperSubDesign.getPageHeader().getElementByKey("wo_image"); image.setX(3); image.setY(69); image.setHeight(new Long(height - Math.round(height*.35)).intValue());
image.setWidth(new Long(width - Math.round(width*.35)).intValue());
I am using iReport to Design Reports and those reports are deployed in to Jasper Server.In iReport itself got This Error "Error exporting print... java.lang.RuntimeException: New BMP version not implemented yet.
net.sf.jasperreports.engine.JRException: java.lang.RuntimeException: New BMP version not implemented yet."How can resolve this one .
Thank you friend
So you are trying to display a huge image on Jasper server, right? Maybe you can add an automatic image resizing function to tailor the source image to the proper size, just as is mentioned in this post. Hope it can help you a little.
By the way, if you find proper situation, please share with us, ok? Thanks.
Thank you sir .but got this error when i execute ireport
-- "Error exporting print... java.lang.RuntimeException: New BMP version not implemented yet.
net.sf.jasperreports.engine.JRException: java.lang.RuntimeException",how to solve this sir