How to set image in jasper title programmatically in Products Posted July 22, 2013 I am creating jasper report without using jrxml template. I need to know how can we set how image in jasper title programmatically? ... //Title band = new JRDesignBand(); band.setHeight(50); textField = new JRDesignTextField(); textField.setBlankWhenNull(true); textField.setX(0); textField.setY(10); textField.setWidth(515); textField.setHeight(30); textField.setHorizontalAlignment(HorizontalAlignEnum.CENTER); textField.setStyle(normalStyle); textField.setFontSize(22); expression = new JRDesignExpression(); expression.setValueClass(java.lang.String.class); expression.setText("$P{ReportTitle}"); textField.setExpression(expression); band.addElement(textField); jasperDesign.setTitle(band); [/code] here instead of text field I need to add an image. What should I do?
How to set image in jasper title programmatically
in Products
Posted
I am creating jasper report without using jrxml template. I need to know how can we set how image in jasper title programmatically?
here instead of text field I need to add an image. What should I do?