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

Export Chart-Data as XML


mesa

Recommended Posts

Hi,

 

I'd like to export the Jasper Report as XML. But exporting the report results that the chart data is lost because the chart is exported as image:

 

Code:

<imageSource>
<![CDATA[D:report_F948192171E73FF5A0A668BD161926EF.xml_filesimg_16]]>
</imageSource>

 

or as Base64-Encoded String.

 

Is there any chance for me to get the original Chart-Data given to JFreechart?

 

Or is it possible to use an alternative ChartRenderer instead of JFreechart mapping the DataSeries generated bei JasperReport to another module?

 

Thanks a lot for your help

 

Florian Probst

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

mesa wrote:

Is there any chance for me to get the original Chart-Data given to JFreechart?

 

When exporting to XML, no. You might want to consider serializing a JasperPrint object instead, this would preserve the original chart object.

 

Or is it possible to use an alternative ChartRenderer instead of JFreechart mapping the DataSeries generated bei JasperReport to another module?

 

Currently, no. You can have custom chart/image renderer, but you cannot use a built-in JR dataset to collect data for it. This is something we are planning to support in a future version.

 

Regards,

Lucian

Link to comment
Share on other sites

  • 4 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...