Arlina
13th April 2019, 13:45
Hi,

Can I get in report script if sufficient lines are remaining on page?Accordingly the layout would be printed on same page or next page.

Thanks

bdittmar
13th April 2019, 13:55
Hello,
are you searching for:

Report script functions
The statements programmed in a report script section consist of a combination of 3GL programming language features: overview and the following 4GL report functions:

layout.again() Evaluate and print layout again.
need( expr ) Force a page break if the number of free lines is less than expr.
page() Start a new page.
reset.suppress() It is possible to suppress printing a value when it is the same as the previous value. You can use this function to suppress the value once (that is, for one value).
skip( expr ) Skip expr number of lines before printing the next layout.
skip.to( expr ) Skip to the line number indicated by expr. Intervening lines are left blank. If the specified line number is less than the current page number, a new page is started.
to.page( expr ) Start a new page with number expr.

You cannot use need(), page(), skip(), skip.to(), or to.page() in header and footer layouts.


Regards

Arlina
15th April 2019, 06:47
Yes....thanks.
It is already working with need(expr).
I just wanted to confirm if change in page size would affect it or not.

Thanks

mark_h
16th April 2019, 14:26
Yes - changing the page size would impact the output. So lets say you have need(5) lines and page size is 50, and you currently on line 46. It would do the page command and then print. But if the page size was 55 and still on line 46 it would print the 5 lines on the current page.