Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Inserting an SVG image from XML DataSource into BIRT report
AlexA
Hello!
I have an XML file which servers as a DataSource. Inside the xml I have an SVG bit which describes the image.
How can I refer to this image and insert it in the BIRT report??
Find more posts tagged with
Comments
mwilliams
Hi AlexA,
Can you supply the SVG data for testing?
AlexA
Hello Michael!<br />
<br />
I just want to mention that at the end I would like to generate a PDF file. As far as the image is a barcode I need really good quality in the resulted pdf.<br />
Methods described here <a class='bbc_url' href='
http://dev.eclipse.org/newslists/news.eclipse.birt/msg27309.html'>http://dev.eclipse.org/newslists/news.eclipse.birt/msg27309.html</a>
; wont work for me cause the guy uses them to generate html reports and basically rely that browsers would render svg files. (for example IE7 doesn?t understand svg format. plugin need to be installed)<br />
<br />
Here is the svg file:<br />
<br />
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="
http://www.w3.org/2000/svg"
; height="15mm" viewBox="0 0 23.1 15" width="23.1mm"><g style="fill:black; stroke:none"><rect height="11.3316" width="0.42" x="2.1" y="0"/><rect height="11.3316" width="0.21" x="2.73" y="0"/><rect height="11.3316" width="0.63" x="3.36" y="0"/><rect height="11.3316" width="0.42" x="4.41" y="0"/><rect height="11.3316" width="0.42" x="5.25" y="0"/><rect height="11.3316" width="0.42" x="5.88" y="0"/><rect height="11.3316" width="0.63" x="6.72" y="0"/><rect height="11.3316" width="0.42" x="7.56" y="0"/><rect height="11.3316" width="0.63" x="8.19" y="0"/><rect height="11.3316" width="0.21" x="9.03" y="0"/><rect height="11.3316" width="0.63" x="9.45" y="0"/><rect height="11.3316" width="0.42" x="10.29" y="0"/><rect height="11.3316" width="0.21" x="11.34" y="0"/><rect height="11.3316" width="0.21" x="12.39" y="0"/><rect height="11.3316" width="0.42" x="12.81" y="0"/><rect height="11.3316" width="0.42" x="13.65" y="0"/><rect height="11.3316" width="0.42" x="14.28" y="0"/><rect height="11.3316" width="0.84" x="14.91" y="0"/><rect height="11.3316" width="0.21" x="15.96" y="0"/><rect height="11.3316" width="0.42" x="17.01" y="0"/><rect height="11.3316" width="0.21" x="17.64" y="0"/><rect height="11.3316" width="0.42" x="18.27" y="0"/><rect height="11.3316" width="0.63" x="19.32" y="0"/><rect height="11.3316" width="0.21" x="20.16" y="0"/><rect height="11.3316" width="0.42" x="20.58" y="0"/><text style="font-family:Helvetica; font-size:2.8219; text-anchor:middle" x="11.55" y="13.9544">0123456789</text></g></svg>
AlexA
Actually I am also curious how to insert ANY type of image into BIRT report from XML DataSource....