Jump to content
Changes to the Jaspersoft community edition download ×

Dynamic charts on multiple report pages


2005 IR Help

Recommended Posts

By: eric - greatmaster

Dynamic charts on multiple report pages

2004-02-24 09:11

Hi,

 

i try to generate reports with charts using JasperReport.

My problem is that on each page i want to show a different chart, depending on datas. I don't know how many pages i have in the report because it's dynamic.

 

In the report design i could insert the image. But there could be more than one image inserted.

 

How could i display a different chart on each page ?

I should define one image for this but it should generate multiple charts according to this image

How could i do that ?

 

thanks

 

 

 

 

By: Teodor Danciu - teodord

RE: Dynamic charts on multiple report pages

2004-02-25 13:38

 

Hi,

 

This has been discussed several times before.

Here's what I have found after a quick search in the

archives. A more detailed search could bring you

more solutions.

 

https://sourceforge.net/mailarchive/message.php?msg_id=7099393

 

https://sourceforge.net/forum/message.php?msg_id=1811356

 

https://sourceforge.net/forum/message.php?msg_id=2417342

 

I hope this helps.

Teodor

 

 

 

 

 

By: eric - greatmaster

RE: Dynamic charts on multiple report pages

2004-02-26 00:18

thanks teodor, but the links you gave me are not excatly useful for what i want (maybe i was not enough precise in my ask !!!)

 

But i managed to do what i wanted with scriptlets.

 

Nevertheless,i noticed 2 things:

 

- it's impossible to specify in the classpath of ireport, the directory where i put the scriplet class, so i was obliged to copy it in the lib directory of ireport

 

- i put the charts generated with scriplet in a subreport. In the master report i use a Database connection, but not in the child report. Although,i was obliged to set a database connection in the child for the master report working.

 

eric

 

 

 

 

By: Teodor Danciu - teodord

RE: Dynamic charts on multiple report pages

2004-02-26 00:36

 

Hi,

 

For the first thing, ask the iReport team.

 

For the second, you don't need to supply the

subreport with a connection if you don't use it.

The problem is that when a report or subrepot does

not have a data source of its own, by default it does

not generate anything.

But you should use whenNoDataType="AllSectionsNoDetail"

for your subreport template.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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