'How can I show a message when clicking the print button on fastreport?

I want to show a message when the fastreport print button is clicked. How can I write down a code from delphi?

Should I use "OnBeforePrint" or "OnAfterPrint"?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source