Page 1 of 1

sales orders. Display msgbox after print preview

PostPosted: Thu Oct 26, 2017 1:06 pm
by DannyC
Hi,
Version 7.1
I am using the SalesOrder.Printed event to attempt to display a little message to the user AFTER the report has been previewed to screen. Assuming the SystemSettings.PrintToScreen = True.
Basically the client has forgetful staff who print the invoice, but fail to actually print it to hardcopy so they want a messagebox to remind them to print the damn thing when it's previewed to screen.

The problem I have is that salesOrder.Printed seems to be fired BEFORE the preview is displayed. It's only after I click OK the invoice is previewed.

How might I achieve this? You can provide code in C# if easier. I'll decipher it into VB .Net.

Cheers

Re: sales orders. Display msgbox after print preview  Topic is solved

PostPosted: Thu Oct 26, 2017 1:33 pm
by SBarnes
Hi Danny,

Have a look for JiwaFinancials.Jiwa.JiwaApplication.JiwaPrintReportUI.MainForm in a form plugin and see if you can attach a shown event.

You may even be able to detect the actual print click and only show your message if the user doesn't print on the close look at cmdPrint.