Sapna20
3rd August 2016, 10:12
Hi expert,

Is there any way to abort printing of report?

What my requirement is "if any unwanted record comes up " then the whole report should not be printed.I have a standard program script so this cannot be done through program script. How can I stop printing of report through report script as the report script has header and before.field layout also...and i will get to know about the record at detail level.

bhushanchanda
3rd August 2016, 14:20
Hi,

You can find the process name by using pid and then kill it through report script.

Check this thread (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=15362) or this (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=14201&highlight=kill)

Ajesh
3rd August 2016, 15:03
In the before.program section of the report script, try finding that junk record and if found then use stop(), end() or exit().