I am developing a VST AddIn that voids a payment on the Void Historical Payables Transactions window. The process works fine, and I'm able to get past a few modal dialogs on the window using BeforeModalDialog.
But after the payment is voided, several posting report dialogs are displayed that do not trigger the BeforeModalDialog event.
I can temporarily disable the two posting reports related to Purchasing - Void Historical Trx via SQL, but there is also the potential for the Apply To Posting Journal and General Posting Journal to print. I'd rather not disable those via SQL, since those are not specific to the Void process.
Is there any way for VS Tools to detect the posting report dialogs and natively click the Cancel button?
If not VS Tools, how about Continuum?