Jump to content
Changes to the Jaspersoft community edition download ×

Please Suggest! This is very Important!


Recommended Posts

By: Arun Kumar PG - pgarunkumar

Please Suggest! This is very Important!

2003-12-30 22:52

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: Please Suggest! This is very Important!

2003-12-31 06:25

 

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: Arun Kumar PG - pgarunkumar

RE: Please Suggest! This is very Important!

2004-01-01 03:44

 

 

Thankz Teodor for the prompt reply!

I appreciate that.

 

Well lemme try that. But I have a doubt

Will the Japer XML file be compiled if I place the element at a negative Y coordinate.

 

Thankz in advance

Arun

 

 

 

 

 

 

 

 

By: Vinod Kumar Singh - vinodsingh

RE: Please Suggest! This is very Important!

2004-01-02 00:30

I have tested fields with -ve Y value but it does not throw any error and compiles successfully.

 

Would you elaborate the error you are getting?

 

Vinod

 

 

 

 

By: Arun Kumar PG - pgarunkumar

RE: Please Suggest! This is very Important!

2004-01-01 06:38

Dear Teodord!

 

I tried that but itz giving me a compilation error.

stating: Element out of band.

Actually I am using iReport for the XML design creation. When I set a negative Y value for the items that I want to be printed as summary it

gives me an error.

 

Teodord I'll be grateful to you if you could giv me a

sample chunk of XML depicting the solution.

 

Thankz in Advance!!

Arun

P.S. REPLY ANTICIPATED

 

 

 

 

By: Teodor Danciu - teodord

RE: Please Suggest! This is very Important!

2004-01-03 14:07

 

Hi,

 

As far as the reporting engine is concerned,

an element should not cross or be placed below the bottom of the band.

But a negative Y coordinate is perfectly OK.

 

I think it is iReport which adds this constraint.

You'll probably have to edit and compile your XML

outside iReport to get around this.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Arun Kumar PG - pgarunkumar

RE: Please Suggest! This is very Important!

2004-01-04 00:01

 

Hi!

 

Thankx for the replyTedor.

 

I'll edit the design XML manually and will submit it to the Reporting engine.

 

Thankx once again!

Arun

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