Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Visual Studio Tools for Office
|
Visual Studio Tools for Office Be sure to specify which version you are working with.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio Tools for Office section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2009, 07:38 AM
Registered User
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Outlook 2003 custom form, ActiveX control not work

I am developing AddIn for Outlook 2003/2007. In Outlook 2003 I create custom form and add my custom ActiveX control to it. Then when I press "Run this Form" the form is processed and I can see my control. But when I call the form using program method there is an error: An unhandled exception occurred in your application. Contact your administrator or the author of this document for further assistance.
Details:
The operation failed.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0xA5131418): The operation failed.
at Microsoft.Office.Interop.Outlook._MailItem.Display (Object Modal)
at OutlookAddIn5.ThisAddIn.ThisAddIn_Startup(Object sender, EventArgs e) in C:\Projects\My Tests
Project\OutlookAddIn5\ThisAddIn.cs:line 48
at Microsoft.Office.Tools.AddIn.OnStartup()
at OutlookAddIn5.ThisAddIn.FinishInitialization() in C:\Projects\My Tests
Project\OutlookAddIn5\ThisAddIn.Designer.cs:line 65
at Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.ExecutePhase(String methodName)
at Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.ExecuteCustomizationStart upCode()
at Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.ExecuteEntryPointsHelper( )
at
Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.Microsoft.VisualStudio.To ols.Applications
.Runtime.IExecuteCustomization2.ExecuteEntryPoints ()

************** Loaded Assemblies **************

By adding other ActiveX controls, for example:Windows Media Player, everything works ok. In Outlook 2007 my custom ActiveX control works ok. Where is the problem in?





Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Treeview Control in Access Form cej2583 Access VBA 7 March 18th, 2008 02:40 PM
custom activex control in access ParadiseIsle Access VBA 0 November 2nd, 2005 08:00 PM
Implementing ActiveX Control on Access Form JimmyNeutron Access VBA 2 November 2nd, 2005 01:33 AM
.NET's custom control and form lok_tan All Other Wrox Books 0 July 17th, 2005 10:10 AM
Trying to Place ActiveX Calendar Control on Form twsinc Access VBA 3 October 29th, 2004 07:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.