Sales Order print preview when normally not

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Sales Order print preview when normally not

Postby DannyC » Tue Mar 05, 2019 4:28 pm

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

Re: Sales Order print preview when normally not

Postby DannyC » Tue Mar 19, 2019 8:43 am

Gentle bump. Client is keen for a resolution.
Let me know if my scenario above isn't clear.
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: Sales Order print preview when normally not

Postby DannyC » Tue Mar 26, 2019 12:41 pm

I've managed to successfully work this out.

So I now have the normal Print button which goes direct to printer.
I've also got a 'reprint' button which previews to screen.
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests

cron