in a dynamic form i am catching all user fired print events in the Form::prePrint event with xfa.event.cancelAction = 1, change the print settings to my defaults and start a print job. Until here it works fine.
But: Triggered by xfa.event.cancelAction = 1 Acrobat opens a messagebox "Print canceled" before it starts my print job. I can dismiss the messagebox and the code runs like planned, but this messagebox is very anoying.
Does anyone know if there's a possibilty to surpress that messagebox? I can't find anything in the official documents.
Here is the complete code:
Solved! Go to Solution.