Monday, February 16, 2009

Record(s) cannot be read; no read permission on

Trying to access data in an Access DB, I kept getting the error above..

A bunch of good sites provide the required connection strings, but in order to get it working I had to specify the FULL path to the System.mdw, i.e.

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=[full path to DB];Mode=Read;Jet OLEDB:System database=[full path to mdw file]

Monday, February 09, 2009

Error 1001 – Windows Service Installation

Using the VS2008 tools to create a Windows Installer, I got into a loop whereby it wouldn’t uninstall the service, because it thought the service wasn’t installed, and it wouldn’t install the service because it decided the service was already installed !!!

To cure the problem, ran sc command at the prompt with the delete switch and the name of the service (from the services admin tool).

After that, the VS installer was sorted…

Thursday, February 05, 2009

Customize the Outlook Ribbon with Visual Studio 2008

I couldn’t find much in the way of posts about customizing the Ribbon in Outlook 2007 using VSTO 2008.

It’s actually really nicely implemented – just not particularly documented…

To get started, in your Add-In, add a Ribbon Designer class.

Add a button to the Ribbon.

In your button event handler, you can access the properties of the parent AddIn using :

Globals.[AddInClassName].[Exposed property]