baan_fun
24th June 2003, 11:52
Hi,

Was somebody doing this task? I have a report and only on the first page I have to print a footer (leng 11 for example).

I am not able to make the report forget about this footer lenght for the following pages.

In the last page of the report I have to print on the bottom of the page another layout. Naturally, the layout is printed at the line :page lenght - 10 lines (the biggest footer).

Is there a possibility to make the report forget about this footer?

Thanks and regards.

rupertb
24th June 2003, 12:58
Hi Baan_Fun,

In your report layout change the output expression from "1" to "lattr.pageno=1"

Good Luck!
Rupert

baan_fun
24th June 2003, 13:13
Hi,

Thank.s a lot for your fast answer.

The ideea you gave me is able to handle the printing of the footer.

The problem that still remains is that the lenght of this footer is remembered by the report even if the footer is not printed.

In the last page of my report I have to print an after.field layout exactly at the bottom of the page. I cannot do this. This layout is always printed at the page.length - footer.lenght.

Do you have an ideea hoe to handle this?

Thanks a lot.

tjbyfield
25th June 2003, 07:00
Could you define another footer line that will print the details you want to print and use an output print condition that is set in the script for that footer line ?
(ie: a variable that you define and set or there may be a Baan variable that is available at the time)

Terry

baan_fun
25th June 2003, 11:18
Hi Terry,

Thanks a lot for your ideea. Meanwhile I managed to created a solution for this. A little bit forced but is functioning :-).

Your ideea came to me also but the wrong part is that Baan decides at runtime the length of the footer and will consider always the longest footer as default. In my case I had to print on the first page a footer of 11 lines and on the last page at the bottom of the page some informations that could change depending on lattr.break. This has 21 lines. This means that also for the first footer the reserved lines were 21.

What I have done is:
- print the footer of 11 lines only on first page (print condition : lattr.pageno = 1)
- on all following pages the footer was not printed but the reserved ยง11 lines for the footer were empty (this didn't bother me).
- on the last page I print an after report (this can forget about the footer). To send the pointer to the line I need I couldn't use the skip.to() because the footer would be checked. I inserted instead empty lines until the line I needed.

It's ok for what I needed.

Thanks one more time.