Jump to content

Keep data at the bottom of page


2005 IR Help

Recommended Posts

By: Anderu - tzehowe

Keep data at the bottom of page

2004-10-18 04:12

 

Hi. I'm kinda new at using iReport and JasperReports and hope anyone can share with me some ideas in solving my problem.

 

Here's the situation. I'm displaying a list of Double from a beans collection. And at the end of the collection I need to display the total.

 

The problem is I need to keep the total at the bottom of the page. If I use the group footer the total will just print following the price at each group rupture.

 

Here's what my beans collection content looks like:

 

id cust description price

--- ---- ---------- -----

1 abc a 10

1 abc b 15

1 abc total 25

2 def c 34

2 def d 55

2 def e 1

2 def total 90

. . .

 

And the layout in the report looks like:

 

+-------------------------------+

| Company name | -> title

| |

| Cust: abc | -> grpHdr

| descripition price |

| a 10 | -> detail

| b 15 |

| total 25 | -> grpFtr

| |

| |

| |

| |

| |

| |

| pg | -> pgFtr

+-------------------------------+

 

What I'm trying to achieve:

 

+-------------------------------+

| Company name | -> title

| |

| Cust: abc | -> grpHdr

| descripition price |

| a 10 | -> detail

| b 15 |

| |

| |

| |

| |

| |

| |

| total 25 | -> grpFtr

| pg | -> pgFtr

+-------------------------------+

 

I've been reading about a lot of hack/tricks to achieve some desired layout in this forum but I couldn't find or come out with one that would solve my problem.

 

Any help like ideas or sample code would be appreciated.

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