How to prevent the printing of a report pro-grammatically

In Sage X3, we may come across a situation where we need to prevent printing of a report and we can achieve this using code.

Steps to follow : 

To pr…..