I have a user that wants the form he is filling in to automatically print and close the form when he clicks on a button.
I've managed to get the form to print when the button is closed but when I then add the Close element to the code the form closes before it has a chance to print.
The example code that I am playing with is as follows:
Public Sub CTRL4_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
Dim field2 As XPathNavigator = e.Source.SelectSingleNode("my:field2", NamespaceManager)
If (field2.Value) = 2 Then
Me.Print()
End If
Me.Close()
Can anyone help me?