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

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

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

Postby marcosomizu » Mon Sep 14, 2015 3:02 pm

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
marcosomizu
Occasional Contributor
Occasional Contributor
 
Posts: 23
Joined: Mon Sep 07, 2015 12:01 pm
Topics Solved: 1

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

Postby Mike.Sheen » Mon Sep 14, 2015 11:27 pm

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
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

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

Postby marcosomizu » Tue Sep 15, 2015 1:38 pm

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
marcosomizu
Occasional Contributor
Occasional Contributor
 
Posts: 23
Joined: Mon Sep 07, 2015 12:01 pm
Topics Solved: 1


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 4 guests