A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

Outlook AddIn in vs2008 questions





 
 
Thread Tools Display Modes
  #1  
Old April 26th 08, 09:30 PM posted to microsoft.public.outlook.program_addins
John[_11_]
external usenet poster
 
Posts: 30
Default Outlook AddIn in vs2008 questions

Hi

I have a simple Outlook 2003 AddIn created using Outlook 2003 AddIn template
in vs 2008. The full code is given below at the end. I got warnings on
Interop assemblies as I have Office 2007 installed while AddIn is 2003 but
as I need to target both 2003 and 2007 I am sticking to lowest common
denominator.

I installed the AddIn by running the vs 2008 generated setup.

First problem is In Outlook Trust Centre-Add-Ins, my add in is in Inactive
list. How can I automatically make the AddIn active during Setup?

Secondly, when I tick my Add-In under COM Add-Ins and restart Outlook, it
still remains Inactive and under COM Add-Ins it says; Load Behaviour: Not
loaded. A runtime error occurred during the loading of the COM Add-In.What
is the problems or how can I debug this issue?

Many Thanks

Regards



Outlook 2003 AddIn Code
==================

Public Class ThisAddIn

Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
MsgBox("Startup")
End Sub

Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown
MsgBox("Shutdown")
End Sub

Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As
Boolean) Handles Application.ItemSend
MsgBox("Item Sent", , "My Outlook AddIn")
End Sub

End Class



Ads
  #2  
Old April 28th 08, 03:01 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,723
Default Outlook AddIn in vs2008 questions

Did you add the custom actions for setting the CASPOL for full trust for
your VSTO addin? It sounds like you didn't do that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"John" wrote in message
...
Hi

I have a simple Outlook 2003 AddIn created using Outlook 2003 AddIn
template
in vs 2008. The full code is given below at the end. I got warnings on
Interop assemblies as I have Office 2007 installed while AddIn is 2003 but
as I need to target both 2003 and 2007 I am sticking to lowest common
denominator.

I installed the AddIn by running the vs 2008 generated setup.

First problem is In Outlook Trust Centre-Add-Ins, my add in is in
Inactive
list. How can I automatically make the AddIn active during Setup?

Secondly, when I tick my Add-In under COM Add-Ins and restart Outlook, it
still remains Inactive and under COM Add-Ins it says; Load Behaviour: Not
loaded. A runtime error occurred during the loading of the COM Add-In.What
is the problems or how can I debug this issue?

Many Thanks

Regards



Outlook 2003 AddIn Code
==================

Public Class ThisAddIn

Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
MsgBox("Startup")
End Sub

Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown
MsgBox("Shutdown")
End Sub

Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As
Boolean) Handles Application.ItemSend
MsgBox("Item Sent", , "My Outlook AddIn")
End Sub

End Class




  #3  
Old April 28th 08, 03:14 PM posted to microsoft.public.outlook.program_addins
John[_11_]
external usenet poster
 
Posts: 30
Default Outlook AddIn in vs2008 questions

Hi Ken

Yes, thank. I did it as per this video and it now works fine.

http://msdn2.microsoft.com/en-us/vbasic/cc338014.aspx

Regards


"Ken Slovak - [MVP - Outlook]" wrote in message
...
Did you add the custom actions for setting the CASPOL for full trust for
your VSTO addin? It sounds like you didn't do that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"John" wrote in message
...
Hi

I have a simple Outlook 2003 AddIn created using Outlook 2003 AddIn
template
in vs 2008. The full code is given below at the end. I got warnings on
Interop assemblies as I have Office 2007 installed while AddIn is 2003
but
as I need to target both 2003 and 2007 I am sticking to lowest common
denominator.

I installed the AddIn by running the vs 2008 generated setup.

First problem is In Outlook Trust Centre-Add-Ins, my add in is in
Inactive
list. How can I automatically make the AddIn active during Setup?

Secondly, when I tick my Add-In under COM Add-Ins and restart Outlook, it
still remains Inactive and under COM Add-Ins it says; Load Behaviour: Not
loaded. A runtime error occurred during the loading of the COM
Add-In.What
is the problems or how can I debug this issue?

Many Thanks

Regards



Outlook 2003 AddIn Code
==================

Public Class ThisAddIn

Private Sub ThisAddIn_Startup(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Startup
MsgBox("Startup")
End Sub

Private Sub ThisAddIn_Shutdown(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Shutdown
MsgBox("Shutdown")
End Sub

Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As
Boolean) Handles Application.ItemSend
MsgBox("Item Sent", , "My Outlook AddIn")
End Sub

End Class






 




Thread Tools
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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook AddIn in vs2008 questions John[_11_] Outlook and VBA 1 April 27th 08 07:06 AM
VS2008 OL2007 add-in with ClickOnce : Does not load Glenn[_3_] Add-ins for Outlook 4 January 16th 08 05:58 AM
Some Questions about Outlook Dotku Outlook - General Queries 4 May 8th 06 03:00 PM
Outlook add-in questions James Add-ins for Outlook 0 February 5th 06 11:49 AM
Outlook Questions ezstepper Outlook - Calandaring 0 January 20th 06 07:21 PM


All times are GMT +1. The time now is 12:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
SEO Toronto - Books - Online Loans - Remortgages - Debt Consolidation