croezen
6th February 2004, 11:42
I am using 2 different footers in my report for printing sales invoices. ( 1 for end.orco and 1 for not end.orco )
At this time i am using the same hight for both footers but what i realy want is the first footer to be 4 lines and de second footer to be 10 lines.
If i do so the second footer starts printing on the same position as the first footer, and it should start 6 lines higher.

Anybody has any ideas ?

mohan05
6th February 2004, 13:35
Hi

I am not sure what exactly you want to do. But have you tried skip.to function.

if not try with this:

before.layout:
skip.to(spool.pg.length - n)

where n = your starting line number for footer layout.


-Mohan

croezen
6th February 2004, 14:56
Hi Mohan,

Thanks for your fast reply!

I have 2 footerlayouts
footer 1, 4 lines, outputexpression "not end.orco"
footer 2, 10 lines, outputexpression "end.orco"

If i use these footers the second footer is started on the same line as the first footer so it doesn't fit on the page.

If i make the first footer also 10 lines, the report prints perfect, but i want to use these 6 lines.

Correct me if i'm wrong but if i recall right i can't use a "skip to" in a footer section ?

francishsu
9th February 2004, 18:34
I think that Baan has some limitations regarding variable footer sizes. If you have it select different footers based on a variable such as lattr.pageno, Baan will handle that just fine. But if you base the footer size on a variable that changes values in the middle of the page so to speak, then Baan can have a problem with that, depending on when the variable changes.

Here's the Baan help on the report footer margin (Form 2 of Maintain Reports):
The number of lines allocated for the footer. If this value is -1, the footer margin is calculated by the report writer. When you have a number of different footer layouts of different sizes which are executed on conditions at runtime, it is difficult for the report writer to calculate the footer margin. So in such a case you have to specify a number of lines for this margin.

Unfortunately, this does little to fix the problem in your situation.