clhubert Posted January 20, 2009 Share Posted January 20, 2009 I am trying to use SVG graphics in my Report. In iReport, i only see options for .gif and .png Is there a way to integrate it? Link to comment Share on other sites More sharing options...
Timbo2013 Posted September 11, 2013 Share Posted September 11, 2013 Hello clhubert,yes, there is a way to inetrate SVG in reports.For example you can use:<image scaleImage="RetainShape" hAlign="Center" vAlign="Middle"> <reportElement uuid="0eae3352-7e0c-40fe-a01a-1a3f72b030ac" x="0" y="37" width="195" height="38"/> <imageExpression><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("path/to/the.svg"))]]></imageExpression></image>(tested with JasperReports v5.2.0 and iReport v5.1.0) Also see:http://community.jaspersoft.com/wiki/how-add-svg-image-your-report-jrxml Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now