Outlook 2003 View Control with C#
- by Eleasar
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!