Hi. I am extremely new to Infopath, so this question probably sounds pretty uninformed, but I have looked around and have not been able to get anything to work.
What I am trying to do is to have a button that, when pressed, submits the form then prints it out. I wrote a web service that accepts the form data, and processed it before my customers added this new requirement on. I am doing the programming in VB and this is a Web Enabled Form.
My Code:
Public Sub CTRL84_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
Me.Submit()
Sender.PrintOut()
End Sub
Neither of these lines of code work however, and I'm not sure what I should be doing. I see every where people using thisXDocument.PrintOut(), but when I try that it does not recognize thisXDocument.
Thank you in advance