Jump to content
JasperReports Library 7.0 is now available ×

Not getting "Summary" at end of a page! Help!


Recommended Posts

By: Arun Kumar PG - pgarunkumar

Not getting "Summary" at end of a page! Help!

2003-12-30 02:56

 

Hi all!

 

Can any 1 tell me how to get the summary section at the bottom of a page.

Actually, I have a design where I have a detail band and after that I have a summary band.

The problem is that when the Detail does not contains anything the summary band rises above the bottom of the page and therefore a gap is created between the botton of the page and summary.

 

It looks awkward!

 

Here is how the page looks:

------START REPORT------

_________________________

Page header

_________________________

Group A

_________________________

Detail

_________________________

GROUP A FOOTER

(This a line)

_________________________

SUMMARY

_________________________

--------END REPORT------

 

GAP COMES HERE when no detail present

(it looks awkward!)

_________________________

PAGE FOOTER

_________________________

 

 

 

What I want is this:

------START REPORT------

_________________________

Page header

_________________________

Group A

_________________________

Detail

_________________________

GROUP A FOOTER

(This a line)

_________________________

 

GAP CAN COME HERE if no detail is present

(Itz okie)

_________________________

SUMMARY

_________________________

PAGE FOOTER

_________________________

------END REPORT------

 

 

Can any 1 tell me how to get rid off the first type of

Report shown above!

 

Thankz in advance

Arun

 

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Not getting "Summary" at end of a page! Help!

2003-12-31 06:23

 

Hi,

 

This can only ba achieved using a trick like the following:

 

Place your summary elements in the page footer

at a negative Y coordinate so that they actually

appear above the top of the page footer.

Use their <printWhenExpression> based on a

boolean flag to suppress these elements on all

pages except the last.

To indicate that the report generation reached the

last page, use an invisible element (white line)

in the actual summary section that would have

a dummy <printWhenExpression> of its own whose

only purpose is to set your last page flag to true.

 

I hope this helps.

Teodor

 

 

 

 

 

By: rflair - rflair

RE: Not getting "Summary" at end of a page! Help!

2004-04-14 05:22

Hi!

I don't understand the end of the text :

"a dummy <printWhenExpression> of its own whose

only purpose is to set your last page flag to true"

what is "dummy <printWhenExpression>" and how can it mark the end of report?

thanks!

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