Posts

Showing posts from June, 2008

Adding a button to Outlook Addon

Private Sub AddToolbar() Try Dim objBar As Office.CommandBar OL = Me.Application objBar = OL.ActiveExplorer.CommandBars.Item("Standard") objButton = objBar.Controls.Add(, , , 1, True) With objButton .Picture = getImage() .Mask = getImage() .TooltipText = "eConfirm" .Caption = "eConfirm" .Style = msoButtonIconAndCaption ' msoButtonIcon End With Catch ex As System.Exception MsgBox("Failed to add button" & ex.ToString()) End Try End Sub Private Sub objButton_Click(ByVal Ctrl As Office.CommandBarButton, _ ByRef CancelDefault As Boolean) Handles objButton.Click MsgBox("Hello World") End Sub

Editing webserver files in Ubuntu (LAMP)

Quick post as this was a great tip to avoid using SUDO constantly. If you change the owner of the files in the webserver path to be the current user then you don't need to do SUDO gedit filename everytime you want to edit a file! :)

Creating Outlook Addon not easy due to security model!

11-June-2008 10am Wow, who would have thought it would be so hard to write an add on to outlook. (And the code I want to write is only about 10 lines!!!!) But deploying this so it will run without the Windows security model getting in the way has taken many hours of my time already! If only I could get on with writing code. (frustrated). But, as of writing this, Microsoft has made it so hard to deploy an outlook addon that I've almost given up. A brief glance though Part 1 and Part 2 of these documents will give you an idea about why deploying an outlook addon is difficult for Outlook 2003. But, get a load of this next document for deploying addons for Outlook 2007. The screen shots and file locations are different than my standard install of VS2008, and searching for the sample files mentioned in the document bring up no results. Well back to it, if I can get this done in under a day I'll be happy, but I'm dubious. 1:45pm Kevin Farley puts it well: "... the myster...