Outlook - Outlook AddIn in vs2008 questions
Asked By John
26-Apr-08 03:30 PM

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
Outlook 2003
(1)
Outlook 2007
(1)
Office 2007
(1)
Outlook
(1)
Application.ItemSend
(1)
System.EventArgs
(1)
VSTO
(1)
ItemSend
(1)
Ken Slovak - [MVP - Outlook] replied...
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 replied...
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
mail merge to create email in Office 2007 Outlook Below is procedure I have been using for years to do mail merge to create bulk emails. This has worked perfectly with Office 2003, Got Office 2007 in May. This process was still working in August and I believe also in September ONE Word document – which does not contain an active Mail Merge menu. And the Outlook initiation window never closes. There appears to be a problem with the interface between Outlook
Bulletproof Exiting Outlook (and not crashing) Outlook In building an Outlook integration, I try to exit Outlook this way: Marshal.ReleaseComObject(objOutlook) objOutlook = Nothing Before I did this, sometimes this code would not execute, and Outlook would then get a bit messed up. I would have to load Outlook and wait for it to repair and / or shut down Outlook in the Task Manager. I do not want this ever to happen to a user code the best way to handle this scenario. I want to bulletproof an application with Outlook, and I do not want to corrupt a user's Outlook file. I am just
Publishing Calendar 'Upload Failed' Outlook I'm trying to share the Exchange calendar I use at work with someone outside my corporate environment. They've published theirs and I have been able to view via Office Online. When I go to publish mine, I continually get a 'Upload Failed' error. Any ideas on how to fix would be GREATLY appreciated! Outlook Calendaring Discussions Outlook 2007 (1 Outlook (1) Office (1) IIS (1) AREAD (1) Report (1) IwebCal (1) DianeI (1) Version of outlook? Does it work if you publish a second calendar? (create a new calendar folder and
Code to check for HTML messages being sent Outlook Hi, I wanted to know if there was a way to check the format of way past that. . . 2nd line. . . Any help with this would be greatly appreciated. TIA, Jarryd Outlook Program VBA Discussions CodeThatSpecifiesTheMailBeingSent (1) Inspector.CurrentItem.Class (1) MyItem.HTMLBody (1) Outlook 2003 (1) HTMLStartPos (1) Outlook 2007 (1) HTMLEndPos (1) Word 2007 (1) Use item.BodyFormat, where item is the MailItem. That tells you the format of the item and then do your parsing, then let the send complete. - - Ken Slovak [MVP - Outlook] http: / / www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options
Missing Sent and From when saving a new e-mail message Outlook Hi, I have developed an Office Add-in for Microsoft Outlook 2007. I intercept the Sent event to bring up a dialog for the user to choose EntryID of the mailitem and then retreiving the item later to do the SaveAs(. . .), but Outlook tells me there is no such item with that EntryID. Any kind of help is much appreciated, Dennis Outlook Discussions Outlook 2003 (1) Outlook 2007 (1) Office (1) Application.ItemSend (1) Items.ItemAdd (1) EntryID (1) PropertyAccessor