Andreas_karl
8th September 2009, 14:04
Hi!
I have 2 footers on my report:
Footer 1 has 4 lines
Footer 2 has 9 lines
Only one footer should be printed when the condition is matching - that works, but because footer 1 has less lines than footer 2 there is too much space on the bottom of the report.
Can I change the foot margin explicit in report script or how should I handle it?

kbartelds
9th September 2009, 13:18
you can use the function skip.to(spool.pg.length - x) in the last after field before the footer, where x is depending on which footer is to be printed.

Regards
Klaas

Andreas_karl
10th September 2009, 07:16
I already tried that but it doesn't affect the position of the footer :(

mark_h
10th September 2009, 14:31
What is your footer margin on form 2? I am wondering if you could set that to 9 rather than the default of -1. I think that reserves 13 lines. It would save a little space.

Andreas_karl
11th September 2009, 07:08
Tried both 9 and -1 - makes no difference :(

Andreas_karl
11th September 2009, 09:29
it would solve my problem if I could switch between 2 page lengths - is there a way to define the page length in report script?
I tried spool.pg.length = value in the before.program of the report script, but it makes no effect.

MilindV
11th September 2009, 10:20
Hi

try setting this variable r.bottom.mrg in report script according to the size of footer layout, when your deciding which footer needs to be printed.

No need to declare this variable.

Actually in this variable bottom margin gets stored which we define in second form. I used this variable this for some different purpose as read-only. But Don't know Whether we can change/write that variable or not.

Thanks & Regards
MilindV

Andreas_karl
14th September 2009, 07:40
THX for your reply, but the bottom margin is already set to 0, i need the footer margin or how to set pg.length in script. Is there any variable for this?

jp.aalders
14th September 2009, 11:10
Maybe you are facing the limits of the report editor. I've faced the same problem in Baan IV when using two footers in the same report. Two footers from 4 lines went ok, when I used footers with more then 4 lines it went wrong. :mad: