Dietrich
5th March 2003, 12:05
hi,
in dependance of the data on the page i would like to suppress the printing of some (whole) pages - not only some layouts.
in the past i managed it with the use of lattr.print, but i have to program all layouts and in the end an empty page is printed.
maybe the is a better way ?

:confused:

dietrich

morpheus
5th March 2003, 13:53
One way is to write the code in your program script, and use rprt_send() only when the record fulfills the condition.

Dietrich
5th March 2003, 14:11
yes - that is the easy way (if you have the scipt).
but isn“t there a way to use only the reportscript?

Dietrich

tools123
5th March 2003, 15:16
read some special field(company,date,page) in the header
before layout each time and if your condition is met print it else skip.(this is assuming you have a condition which is non detail layout dependent but page /header layout based)

the same may extend to before.field layout too.

Dietrich
5th March 2003, 15:47
sorry, i can not follow you.
what do you mean with "if your condition is met print it else skip"
how do i skip a whole page via the reportscript?
can you give me an example?

thx
dietrich

tools123
6th March 2003, 02:08
realized that page() and skip.to() can notbe used in the header
and footer layouts.Please refer to a couple more threads
using page and skip as search words.

here is one I found.

http://www.baanboard.com/baanboard/showthread.php?s=&threadid=1390&highlight=skip.to