Window Rendering

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
 
E

Eric Legault [MVP - Outlook]

That's kind of the whole point of a Modal dialog - you can't access any
other dialogs in the same process space while that window is open. I'm not
sure why Word is blocked - is this WordMail or a Word document opened from
an attachment in the e-mail?

FYI, this kind of post is more suitable for
microsoft.public.outlook.program_vba; this forum is for custom forms.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
President
Collaborative Innovations
-> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
-> Take your SharePoint content offline <-
-> More info: http://www.collaborativeinnovations.ca <-
Blog: http://blogs.officezealot.com/legault
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top