Sales Order print preview when normally not
Client doesn't have sales order printing set to Print To Screen. This is by design & needs to stay that way.
From time to time they want to reprint an invoice, but it needs to print preview, giving them the option of printing, exporting to PDF etc via the normal print to screen.
I am adding a button to the ribbon so they can reprint an invoice to screen.
I thought I could use the plugin provided here
viewtopic.php?f=27&t=473
but I also need to adjust the system setting ManualPrintSelection and also the user setting to print to screen.
I've successfully tweaked the SystemSetting, but when I try to modify the User Setting I am getting an error "the best overloaded method match for JiwaFinancials.Jiwa.JiwaODBC.database.SaveUserSetting(string, string, string, string, int) has some invalid arguments.
My code:
Maybe I am going about it the wrong way?
Bottom line is that sales order printing should always go direct to printer, unless they specifically use my "Reprint" button on the ribbon - in which case it displays to screen.
From time to time they want to reprint an invoice, but it needs to print preview, giving them the option of printing, exporting to PDF etc via the normal print to screen.
I am adding a button to the ribbon so they can reprint an invoice to screen.
I thought I could use the plugin provided here
viewtopic.php?f=27&t=473
but I also need to adjust the system setting ManualPrintSelection and also the user setting to print to screen.
I've successfully tweaked the SystemSetting, but when I try to modify the User Setting I am getting an error "the best overloaded method match for JiwaFinancials.Jiwa.JiwaODBC.database.SaveUserSetting(string, string, string, string, int) has some invalid arguments.
My code:
- Code: Select all
salesOrderForm.Manager.Database.SaveSysData("InvoicingParams", "ManualPrintSelection", true);
salesOrderForm.Manager.Database.SaveUserSetting(salesOrderForm.Manager.Database.JiwaLoginUserID, "Invoicing", "InvoicingPrintToScreen",true);
Maybe I am going about it the wrong way?
Bottom line is that sales order printing should always go direct to printer, unless they specifically use my "Reprint" button on the ribbon - in which case it displays to screen.