p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Other Office > Visual Studio Tools for Office
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 30th, 2009, 07:38 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Treeview Control in Access Form cej2583 Access VBA 7 March 18th, 2008 03: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 11:10 AM
Trying to Place ActiveX Calendar Control on Form twsinc Access VBA 3 October 29th, 2004 08:29 PM



All times are GMT -4. The time now is 03:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc