wait for closing print(preview) dialog

Maybe simple to do, but can’t get it right! :shock:
I have the following method:

globals.mailingid = forms.mailingen_detail.mailingenid
forms.relaties_print_mailing.controller.loadRecords(foundset);
forms.relaties_print_mailing.controller.showPrintPreview();
forms.relaties_print_mailing.logMailing();

The problem is that is the last line is started immidiatly when the printpreview is shown.
I want to start the last line, when I hit the Close button or when I hit the Print-button and the print-job is done.

Can it be done?

I have this same issue… If I am correct Servoy is looking into this but right now this can’t be done the way you expect it.

I want the user to agree to good output (printing and printpreview)…

So, I know there has been talked about the print-preview dialog, returning errors after printing, etc…

But is there any news on this one?

Just received confirmation from Jan via topic 4660 (printer message)…