Jump to content
We've recently updated our Privacy Statement, available here ×

dunham

Members
  • Posts

    41
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Entry Comments posted by dunham

  1. Is it possible to have inline svg code?? (so I can pass it a dynamic with in a detail report for example)

     

    <imageExpression class="net.sf.jasperreports.engine.JRRenderable"><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance(new java.io.File("<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="13" viewBox="0 0 100 13">  <defs>    <linearGradient id="linear-gradient" x1="-176.88" y1="316.13" x2="-150.45" y2="316.13" gradientTransform="matrix(3.78, 0, 0, -3.78, 689.01, 1202.56)" gradientUnits="userSpaceOnUse">      <stop offset="0" stop-color="green"/>      <stop offset="1" stop-color="green" stop-opacity="0"/>    </linearGradient>  </defs>  <title>gradient</title>  <path d="M0,1.26H100v10.4H0Z" style="fill: url(#linear-gradient)"/>  <path d="M69.51,0V13" style="fill: none;stroke: #000"/></svg>"))]]></imageExpression>[/code]

     

×
×
  • Create New...