Hello,
I have the problem that I want to close Infopath at all
AFTER I have sent a form. For sending my form I use the MailEnvelope object.
My code looks like:
var oEnvelope = XDocument.View.Window.MailEnvelope;
oEnvelope.To = "Mailaddress";
oEnvelope.Subject = "Subject";
oEnvelope.Visible = true;
Application.ActiveWindow.Close(true);
My problem at this point is that Infopath don´t wait until the user has clicked "Send" but closes Infopath immediately without waiting for the user until he has clicked "Send".
Does anyone know a way that I can force Infopath waiting so long until the user has sent the form.
Thank you very much for your help.