scripting the print button of the print preview

Hai,

I would like to run an ‘onAction’ method after hitting the buttons (but at least the print button) on the print preview. Would that be possible?

what whould you like todo? other than printing?

Example:

  • ask for a confirmation after printing. When I want to show a dialog after printing I can just call it after a controller.print()… When I do that when I do a controller.printPreview() the dialog shows up on top of the preview.