I am using IP 2007. Forms opens on client machine. I am using one button to do multiple things:
1) switch to another view (using rules), then
2) print the form (in code behind (this.print())),
3) submit the form (this.submit())
4) close the form(this.close()).
The problem is the form closes, but Infopath (the application) stays open and presents the "Getting Started" window to boot. This will confuse my users. How can I, through code, close the form AND the application?