Jump to content

Recommended Posts

Posted

Hi.  I'm a newbie for jasper report

I want to show a chart from jasper on jsp page [Portlet in liferay]. and value to draw a chart I get from webservice.
and I not found a solution to use data from another source and didn't use jrxml or jasper file.

Can you introduce this case to me?

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Posted

I'm not sure that you can reference a chart from a report outside of the report in a given java context. It's duplicated effort, and not the cleanest approach, but Jasper Community edition uses JFreeChart, so you could use that same library outside of JasperReports, within the JSP, and simply generate the same chart on the JSP.

And if you're getting the chart from a web service, it may be possibe to access that service directly from the JSP.

In short, it seems you can bypass Jasper all together for this requirement.

  • 2 weeks later...
Posted
not sure what you're looking for here. Jrxml and Jasper/Java files are the only ways reports can be generated; but if all you need to do is display a chart you can drop Jasper all together and just work with JFreeChart or Java based charts library.

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...