J
Juan Cieri
Hi,
I'm creating a new Outlook.MailItem from inside a VSTO Word Solution like
follows:
....
// New Outlook application
outlookApp = new Microsoft.Office.Interop.Outlook.Application();
// New Outlook Mail Item
Outlook.MailItem mailItem =
(Outlook.MailItem)outlookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
// Here we set the body and other attributes
....
// Finally, we display the mailItem so final users can review the email and
send it.
mailItem.Display(false); // true sets the email window as modal
The problem is that while this window (the email window) is open, users
can't access neither Outlook (if they had oulook opened before the method was
called) nor the Word document they were working with.
Is there any possibility to isolate this mailItem in another process or
something like that?
Thank you very much,
Juan
I'm creating a new Outlook.MailItem from inside a VSTO Word Solution like
follows:
....
// New Outlook application
outlookApp = new Microsoft.Office.Interop.Outlook.Application();
// New Outlook Mail Item
Outlook.MailItem mailItem =
(Outlook.MailItem)outlookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
// Here we set the body and other attributes
....
// Finally, we display the mailItem so final users can review the email and
send it.
mailItem.Display(false); // true sets the email window as modal
The problem is that while this window (the email window) is open, users
can't access neither Outlook (if they had oulook opened before the method was
called) nor the Word document they were working with.
Is there any possibility to isolate this mailItem in another process or
something like that?
Thank you very much,
Juan