Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Forms (http://www.outlookbanter.com/outlook-using-forms/)
-   -   Window Rendering (http://www.outlookbanter.com/outlook-using-forms/76220-window-rendering.html)

Juan Cieri August 1st 08 09:24 AM

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




Eric Legault [MVP - Outlook] August 1st 08 04:31 PM

Window Rendering
 
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


"Juan Cieri" Juan wrote in message
...
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





All times are GMT +1. The time now is 05:03 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com