View Single Post
  #1  
Old August 1st 08, 09:24 AM posted to microsoft.public.outlook.program_forms
Juan Cieri
external usenet poster
 
Posts: 1
Default Window Rendering

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



Ads