Jump to content
Changes to the Jaspersoft community edition download ×

Warning : Element placed outside band area


Recommended Posts

By: Chris Beels - cbeels

Warning : Element placed outside band area

2002-11-06 08:55

When we tried to switch to 0.4.2, we got this error on elements that exceeded the alotted band space, which was a necessary part of our existing report designs. I tried adding the stretchType="RelativeToBandHeight" attribute to the graphicElement tag, but to no avail. The report template XML is up at http://www.ckbphoto.com/test/temp.xml

 

I'd love to switch to 0.4 to start testing the HTML output, but so far, no dice.

 

Thanks,

Chris

 

 

 

 

By: Teodor Danciu - teodord

RE: Warning : Element placed outside band area

2002-11-06 13:35

 

Hi,

 

I really don't understand why is it that you need to

place elements outside the band limits?

 

I have previewed your report design and it does

not make sens to me.

 

Other users have experienced the same problem

because they had frames around the page and

they have to build it from separate lines now.

 

But this doesn't seem to be the case with your

report design.

 

Thank you,

Teodor

 

 

 

 

 

By: Chris Beels - cbeels

RE: Warning : Element placed outside band area

2002-11-07 14:58

Ok, I see from your answer that we're no longer allowed to place elements outside of the band. Perhaps I can work around it.

 

How do I get the line to go all the way down the page when I have a short detail section? Say the page contains a detail with height 13 and I want the line to always be 500 pixels long down the right side. Is that possible now?

 

Thanks,

Chris

 

 

 

 

By: Chris Beels - cbeels

RE: Warning : Element placed outside band area

2002-11-07 15:25

To be clear, I have put up an image of a finished report page at http://www.ckbphoto.com/test/sample.gif

 

The line on the right and the bottom need to be in the same place every time regardless of how many rows (detail sections) are in the table.

 

 

 

 

By: Teodor Danciu - teodord

RE: Warning : Element placed outside band area

2002-11-08 13:03

 

Hi,

 

The vertical line should be made of multiple

individual lines.

You'll have a vertical line on the right side in each

and every report section.

Together they will unite and form the line you need.

You should set stretchType="RelativeToBandHeight"

for each of these lines.

 

It might be that you wouldn't achieve exactly what

you need, because this does not fill the gap

between the last detail on the page and the page

footer.

 

However, you should note that this is only a warning

and the report might still run correctly even in the

given situation.

 

Thank you,

Teodor

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Warning : Element placed outside band area

2002-11-11 20:47

 

Hi,

 

I have a good new for you.

After performing some test and checked the code,

it seems that not all the elements that are placed

outside the band area pose problems.

 

In fact, only the elements that pass beyond the

band bottom are likely to behave abnormally.

This is good new for all users who want to have

lines or rectangles that run from the top of the page

to the bottom.

 

You can achieve this not by putting a long vertical

line on the page header, for example, because it

won't print, due to the way the report filling process

works.

But it will perfectly print if you put it on the page

footer using a negative Y that would help you

achieve the same effect.

 

I have tested it and it works.

 

In the future, we might even soften the report

checks, so that the warning appears only for band

elements placed beyond the band bottom.

 

I anticipate that you will encounter a problem with

the first page of the report, which contains the title.

On this first page, you might have to put a shorter

vertical line with a different Y offset to fit for the

lower page header.

This can be achieved with two sets of elements

and by switching between them using the

<printWhenExpression> based on the built-in

PAGE_NUMBER variable.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Chris Beels - cbeels

RE: Warning : Element placed outside band area

2002-12-05 14:45

Ok, the negative Y elements would do the trick, except for one thing. My page Footer needs to be in the same place on every page (the bottom). It is my understanding that the pageFooter will start at the end of the last detail of the page, whereever it happens to end. Is it possible to force the pageFooter to be in the same place each time?

 

 

 

 

By: Teodor Danciu - teodord

RE: Warning : Element placed outside band area

2002-12-06 08:22

 

Hi,

 

The page footer is always at the bottom,

no matter where the last detail is printed.

 

Thank you,

Teodor

 

 

 

 

 

By: Chris Beels - cbeels

RE: Warning : Element placed outside band area

2002-12-06 11:05

Sorry, I must not be making myself clear. The only way I could use pageFooter is if the top of pageFooter started at y=[pageHeight - pageFooterHeight]. It does not...it starts at y=[lastPageDetailEndHeight].

 

In the previous version, this was solved by putting the page frame in the pageHeader, which always starts at y=0. But this is not possible in 4.4, because, as noted above, elements are no longer allowed to extend below their bounds.

 

This is what the page looks like using the footer and 4.4:

http://www.ckbphoto.com/reportSamples/example1.pdf

(template at http://www.ckbphoto.com/reportSamples/example1.xml)

 

This is what the page looks like using the header and 3.3:

http://www.ckbphoto.com/reportSamples/example2.pdf

(template at http://www.ckbphoto.com/reportSamples/example2.xml)

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