Page 1 of 1

Enable Print To Screen Option When Printing a Sales Order -

PostPosted: Wed Mar 28, 2018 1:09 pm
by Ernst
Hi This is a great Plugin developed by Scott. And has been downloaded 111 times. But can anybody help getting it working in 7.01.

Attached is my attempt, but the print button remain Read Only. I think I need to move the manager to a common spot.

Re: Enable Print To Screen Option When Printing a Sales Orde

PostPosted: Thu Mar 29, 2018 4:22 pm
by Mike.Sheen
Hi Ernst,

I've updated the plugin and attached it to the topic in the samples forum.

Mike

Re: Enable Print To Screen Option When Printing a Sales Orde

PostPosted: Fri Mar 30, 2018 5:23 pm
by Ernst
Brilliant thanks Mike. I'll see how you did it and hopefully learn from that... :)) :D

Re: Enable Print To Screen Option When Printing a Sales Orde

PostPosted: Tue Apr 03, 2018 2:15 pm
by Ernst
Hiya Mike,

Have tried the new plugin you set up for us on 7.01 demo system, and the customer system.

On both I get an Object Reference not set to an instance of an Object. Module printReportSelectionDialog_formClosing.

This is when you click any button on the print box. Can you check that for us please.

Thanks

Re: Enable Print To Screen Option When Printing a Sales Orde

PostPosted: Tue Apr 03, 2018 2:31 pm
by Ernst
PS I just commented out this whole section, and it seems to work fine..


public void printReportSelectionDialog_FormClosing(System.Object eventSender, System.Windows.Forms.FormClosingEventArgs eventArgs)
{
if(eventArgs.Cancel == false)
{
var manager = new JiwaFinancials.Jiwa.JiwaApplication.Manager();
// JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.PrintReportSelection printReportSelectionDialog = (JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.PrintReportSelection)eventSender;
// manager.Staff.UserSettings.InvoicingPrintToScreen = printReportSelectionDialog.PrintToScreen;
// JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.Staff.UserSettings.InvoicingPrintToScreen = printReportSelectionDialog.PrintToScreen;
// object[] startParameters = (object[])printReportSelectionDialog.StartParameters;
// JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.BaseSalesOrderEntryForm salesOrderForm = (JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.BaseSalesOrderEntryForm)startParameters[1];
// JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder salesOrderObject = (JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder) salesOrderForm.SalesOrder;
// salesOrderObject.SystemSettings.PrintToScreen = printReportSelectionDialog.PrintToScreen;
// printReportSelectionDialog.FormClosing -= printReportSelectionDialog_FormClosing;
}

}

}

Re: Enable Print To Screen Option When Printing a Sales Orde  Topic is solved

PostPosted: Wed Apr 18, 2018 12:07 pm
by Mike.Sheen
Hi Ernst,

I've updated the plugin to address that issue.

Mike

Re: Enable Print To Screen Option When Printing a Sales Orde

PostPosted: Mon Jul 06, 2020 3:23 pm
by Ernst
With that plugin print to screen. Ive been trying to change the Default Print type, in the print dialog box, to the second option.... Report Type. By default when the dialog box opens, instead of the default "Single report"

Is it possible to do that. Ive tried a lot of options, but cannot get it to work.