Wednesday, January 23, 2013
How to print base64 image in jasper report pdf ?
How to print base64 image in jasper report pdf ?1) import base64 class in jrxml file <import value="org.apache.commons.codec.binary.Base64"/> 2) Create two parameters logo and base64Img in jasper report.3) logo parameter class as String (java.lang.String) and 4) base64Img parameter class as InputStream (java.io.InputStream) and 5) base64Img parameter Default Value...
How to apply dynamic colors to jasper report ?
How to apply dynamic colors to jasper report ?After some googling, i found the way to apply colors dynamically to jasper report. My working code is,We can access all the jasper files styles and everything with the help of JasperDesign class. Just create some styles like header, body and footer and set colors for those style from java file. The code "styleList[j].setBackcolor(userBackGRDColor);"...
How to image stream to jasper report ?
How to image stream to jasper report ?It is very easy to pass image stream to jasper report pdf.Steps are, 1) Convert the image to stream and set it in parameter ("logo") 2) In jrxml file , create a parameter with parameter class as "java.io.InputStream"3) Place a image on the jrxml design, set "Image Expression" to $P{logo} and "Expression class" to java.lang.String ...
Subscribe to:
Posts (Atom)