Outlook 2003 View Control with C#

Posted by Eleasar on Stack Overflow See other posts from Stack Overflow or by Eleasar
Published on 2010-03-18T00:55:21Z Indexed on 2010/03/18 1:01 UTC
Read the original article Hit count: 744

I want to embed a custom c# windows form (or WPF) user control into an outlook view. I am using Outlook 2003 and Visual Studio 2008.

I did download an example for Outlook 2007 here:

http://blogs.msdn.com/e2eblog/archive/2008/01/09/outlook-folder-homepage-hosting-wpf-activex-and-windows-forms-controls.aspx

and also here:

http://msdn.microsoft.com/en-us/library/aa479345.aspx

I tested it and under 2007 it is working, but for 2003 i am getting the following error when i want to open the view:

Could not complete the operation due to error 80131509

I can start it from Visual Studio, it is registering the folder just fine, debugging works and all that. It creates an HTML page that contains my type as an object parameter - but the Initialize method that should be called is either not present (not shown via JS) or it has some errors.

The breakpoints for RegisterSafeForScripting are also never hit - maybe related to that.

Thx in advance!

© Stack Overflow or respective owner

Related posts about outlook-2003

Related posts about visual-studio-2008