Questions tagged [outlook-addin]

Outlook addins are self-contained programs that modify,extend or add functionality to Microsoft Outlook desktop client. Please use "outlook-web-addins" tag for questions regarding the new model of Outlook Add-ins, which are web-based and can run on Desktop, Web, and Mobile.

Outlook addins are self-contained programs that modify, extend or add functionality to Microsoft Outlook desktop client. They are either COM addins or VSTO addins.

These addins are typically written using tools:

  1. Visual Studio
  2. Visual Studio Tools for Office
  3. VB6

Visual Studio 2013 prior editions provide project templates which can be used to create application-level add-ins for Microsoft Outlook. You can use add-ins to automate Outlook, extend Outlook features, or customize the Outlook user interface.

Links:

4457 questions
1
vote
1 answer

VSTO Outlook Addin Dialog Boxes

I've been trying to figure out the correct way to pop up a dialog box in a way similar to MessageBox.Show in my VSTO addin. I read this could be achieved using WPF, but is there a better way? I've found many different examples most of which are in…
ss7
  • 2,902
  • 7
  • 41
  • 90
1
vote
2 answers

MailItem SaveAs() Method FIletypes

When I pass olMHTML it saves it with .msg extension, but if I change the extension to .mht it works as an mht file perfectly and if I don't I have trouble opening the file with .msg extension. If I save it as olMSGUnicode, it saves with no…
ss7
  • 2,902
  • 7
  • 41
  • 90
1
vote
1 answer

Deploying VSTO Addin with Windows Installer

I found the documentation here: https://msdn.microsoft.com/en-us/library/cc442767.aspx But in my solution I do not have a OfficeAddInSetup project so I assume I am to add a second project with installshield to achieve this, but in the docs it…
ss7
  • 2,902
  • 7
  • 41
  • 90
1
vote
1 answer

How can I reliably get the object of a contact context menu in an Outlook 2013 addin?

I am adding an entry to the context menu for a Contact in Outlook 2013 following the example in this article. Here is the XML:
danBhentschel
  • 863
  • 7
  • 24
1
vote
1 answer

How to display and store decrypted mailItem in Outlook

I am developing an Outlook-AddIn that automatically decrypts emails. So basically, the AddIn changes some MailItem properties (subject, body, attachments) when new mail arrives. The problem is that when I save the item then the decrypted message is…
1
vote
1 answer

C# Access Data in VSTO Addin

I'm creating a VSTO addin. I want to create a dictionary once as outlook starts that I can then access from methods within the OutlookRibbon class. What is the best practice or proper method to create such a dictionary? I currently have the…
ss7
  • 2,902
  • 7
  • 41
  • 90
1
vote
1 answer

Correct Way to Shutdown an Addin While Outllook Still Runs

I have an outlook addin I'm writing in VSTO. I want to exit the addin in a certain case. System.Application.Windows.Forms.Exit() exits outlook completely. I just want the addin to shutdown. I can't call ThisAddIn_Shutdown() because it is…
ss7
  • 2,902
  • 7
  • 41
  • 90
1
vote
1 answer

Calling web service from outlook add in

I'm trying to call a WCF endpoint from an outlook plugin, but it always throws this error: Configuration binding extension 'system.serviceModel/bindings/netHttpsBinding' could not be found. Verify that this binding extension is properly registered…
gkatai
  • 416
  • 4
  • 10
1
vote
1 answer

In Outlook 2010 VSTO, how to hide builtin Groups?

I am trying to hide Built-In Groups (GroupContactsNew) in TabContacts. I have tried below CustomUI but "getTabContactGroupEnabled" never fires. Does anyone knows how to do this? BTW: I was able to make entire "TabContacts" tab invisible by…
1
vote
2 answers

outlook add in add tabs in runtime

I using vs 2013 .NET 4.5.1 c# how can I add tabs to outlook ribbon in runtime? I try : Microsoft.Office.Tools.Ribbon.RibbonTab OneNewTab; OneNewTab = this.Factory.CreateRibbonTab(); OneNewTab.SuspendLayout(); …
1
vote
1 answer

How to remove Outlook add-in load times from the registry?

According to the following article https://msdn.microsoft.com/en-us/library/office/jj228679.aspx#ol15WhatsNew_AddinDisabling Outlook uses the median time of 5 last runs and compares it to 1 millisecond (for add-in startup). This means that if I…
1
vote
1 answer

Outlook plugin is not logging in log file when installed using .msi installer

We have developed a custom outlook addin which has a log file for logging. For installation, we are using .msi installer created using installshield. Installation is successful and functionalities are good except logging. There is only one entry in…
1
vote
1 answer

Async throw error: "End of statement expected"

I'm writing a outlook addin with VSTO VB and want to create a async sub. This is the following code: Public Async Sub TestAsync() Msgbox("test") End Sub But after the Async, the compiler says: "End of statement expected". I also tried to make a…
ZerOne
  • 1,296
  • 6
  • 20
  • 40
1
vote
2 answers

How to insert hyperlink into RTFBODY property of Outlook Appointment?

This is what I have so far: RichTextBox rtb = new RichTextBox(); rtb.Rtf = System.Text.Encoding.UTF8.GetString(item.RTFBody); rtb.Select(rtb.TextLength, 0); rtb.SelectedRtf = @"{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard {\par}…
Lin Meyer
  • 712
  • 5
  • 19
1
vote
2 answers

Get customized togglebutton in outlook addin

Hi I develop an addin for outlook where I want to add a new customized toggle button in the appointment tab. When I save the appointment I want to get the current state of the toggle button. This is my code so far: So the button is already created,…
ZerOne
  • 1,296
  • 6
  • 20
  • 40