Page 1 of 1

How do I know if "Print To Screen" was checked?

PostPosted: Mon Sep 14, 2015 3:02 pm
by marcosomizu
Hi,

I need to do some coding if the "Print To Screen" option of the Report has been checked. I am trying to search which property return this value, but I haven't found it.

Can anyone help me?

Example:

Private Sub SalesOrder_Printed(sender As Object, e As System.EventArgs, report As JiwaApplication.PrintGroup.SalesOrderReports.SalesOrderReport)
Dim salesOrder As JiwaSales.SalesOrder.SalesOrder = DirectCast(sender, JiwaSales.SalesOrder.SalesOrder)
Dim salesOrderForm As JiwaSalesUI.SalesOrder.BaseSalesOrderEntryForm = DirectCast(salesOrder.GenericObjectCollection("SalesOrderForm").Object, JiwaSalesUI.SalesOrder.BaseSalesOrderEntryForm)

If report.property = "Print to Screen" Then
End If
End Sub

Re: How do I know if "Print To Screen" was checked?  Topic is solved

PostPosted: Mon Sep 14, 2015 11:27 pm
by Mike.Sheen
Hi marcosomizu,

Interesting problem - we don't have a way to do this without overriding the print tool click event, I've logged this as bug 12058.

I might be able to show you how to work around this, I've had a crack at it and am almost there but don't have a working solution at the moment. I'll circle back soon and update this thread when I have something working

Mike

Re: How do I know if "Print To Screen" was checked?

PostPosted: Tue Sep 15, 2015 1:38 pm
by marcosomizu
Hi Mike,

I found a way to solve using this code:

If JiwaApplication.Manager.Instance.Staff.UserSettings.InvoicingPrintToScreen Then
End If


Thank you for your support anyway.

Cheers