Report execution: Is it possible to execute a report with the transition of a PLC boolean bit?

Hello all, I have configured an email report in Ignition set to execute at midnight daily. The problem is that the production lines at our plant dont always stop at midnight. I wanted to use a PLC bit to signal the end of production and the execution of the report. Not sure if this is possible. Any assistance would be appreciated.
Thanks in advance. or, depending on your desired outcome, placed on a gateway tag change event script.