The best way to incorporate .NET User Control to Outlook 2003 Folder

S

sobolev

Hi. I need to develop some custom folders in the Outlook 2003.
I developed .NET Outlook addin in the VSTO 2005.
And I just wonder is there a "best practice" for incorporating .NET
User controls into Outlook folders.

Currently I'm using - lets say - "ActiveX method".
I create User Control, make it COM visible and then use WebView of
Outlook Folder to display HTML that using my .NET ActiveX.
Is it commonly used method?
May be there is something more "native" way to get the custom view of
Outlook folder?

Thanks.
 
A

Alexus

Any idea would be great.

ActiveX method for incorporating .NET user controls into Outlook
folders is not very good, cause ActiveX objects running in the default
AppDomain, but not in AppDomain of AddIn, thats why I'm getting
troubles with communcation between functionality of AddIn and
functionality of .NET controls.
And the only way that I can use to solve my troubles in this case is
using .NET remoting I think :(

So, Office developer gurus, I need the help.
I need developing custom view of outlook folders (using on it some
windows forms control), I thought that using .NET user controls is a
good method but it is not.
 
K

Ken Slovak - [MVP - Outlook]

Is this a post from the original poster or from someone else?

..NET controls aren't native to Outlook, which is a COM application. The only
places they can be used are in Web views of folders, which are being
deprecated in Outlook 2007 and in Outlook 2007 form regions and custom task
panes.

If you want a folder view that shows .NET controls your only real option is
to use a Web page to display them, or a separate Windows.Form that you show
when a button is clicked or on some other action.
 
A

Alexus

Thanks for the answers,
Is this a post from the original poster or from someone else?
The first and the second posts are mine. I changed displayed name from
email to the nick.

Ok. Seems that I have not any choice...
I found ActiveX method in CRM Integration sample and now I'm using it
in my project. Seems that it works...

About Outlook 2007. In that version WebViews are not supported or
what?

Or in Outlook 2007 there is more "native" method of using .NET
controls in the Outlook's folders?

Is this a post from the original poster or from someone else?

.NET controls aren't native to Outlook, which is a COM application. The only
places they can be used are in Web views of folders, which are being
deprecated in Outlook 2007 and in Outlook 2007 form regions and custom task
panes.

If you want a folder view that shows .NET controls your only real option is
to use a Web page to display them, or a separate Windows.Form that you show
when a button is clicked or on some other action.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm




Any idea would be great.
ActiveX method for incorporating .NET user controls into Outlook
folders is not very good, cause ActiveX objects running in the default
AppDomain, but not in AppDomain of AddIn, thats why I'm getting
troubles with communcation between functionality of AddIn and
functionality of .NET controls.
And the only way that I can use to solve my troubles in this case is
using .NET remoting I think :(
So, Office developer gurus, I need the help.
I need developing custom view of outlook folders (using on it some
windows forms control), I thought that using .NET user controls is a
good method but it is not.

- ðÏËÁÚÁÔØ ÃÉÔÉÒÕÅÍÙÊ ÔÅËÓÔ -
 
K

Ken Slovak - [MVP - Outlook]

You can use Web views in Outlook 2007. One of the related properties is
hidden in Outlook 2007 for future deprecation, but it's still there. You
just have to show hidden members in the Object Browser to see it
(WebViewAllowNavigation). WebViewOn and WebViewURL are still not hidden in
the Object Browser.

In Outlook 2007 I probably would use a custom task pane (CTP), which can be
used in either an Explorer or an Inspector. Those I've designed using
System.Windows.Forms controls.
 
A

Alexus

In Outlook 2007 I probably would use a custom task pane (CTP), which can be
used in either an Explorer or an Inspector. Those I've designed using
System.Windows.Forms controls.

Cool, CTP is just what I need. If I will upgrade my addin to Outlook
2007 there is will be no problem. Thanks.
 

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