View Single Post
  #1  
Old 15th September 2023, 19:00
tion1976 tion1976 is offline
Member
 
Join Date: Jan 2023
Posts: 39
tion1976 is on a distinguished road
Baan: 4,5,6,10 - DB: sql - OS: windows
report how to print on next page some before.field and also footer
Baan: Infor ERP 10.7
C/S: Client

Hi,
I have a problem with a report with many layouts.
I have more before.field and they show on page #2 however the footer does not make it to show.
Somehow i figured out that I need to get to the next page by calling either page() or to.page(3). However, the remaining before.field layouts do not show even if i set the expression lattr.pageno=3
If I set the expression to the first I want to appear on page #3 it is displayed on page #1.
I am not sure that page() is the same Next page checkbox on layout attributes.

Code:
before.orco.43:
before.layout:
	if cntr=1 then
		lattr.print = false
	endif
	|#14092023.sn
|after.layout:
|	if cntr=2 then
|		to.page(3)
|		lattr.pageno = 3
|	endif
	|#14092023.en

before.orco.44:
before.layout:
|message("cntr %d", cntr)
	if cntr=1 then
		lattr.print = false
	endif
	|#14092023.sn
	if cntr=2 then
|		message("page %d", lattr.pageno)
		to.page(3)
|		lattr.pageno = 3
		lattr.print = true
Recap... I need to print the footer on every page.
How do i do that?
Reply With Quote