sales orders. Display msgbox after print preview  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

sales orders. Display msgbox after print preview

Postby DannyC » Thu Oct 26, 2017 1:06 pm

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
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

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

Postby SBarnes » Thu Oct 26, 2017 1:33 pm

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.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 13 guests

cron