If you are like me you spend much of your time in the Office suite of applications, but as a developer or architect I used to rarely think about incorporating Office into my solutions. I guess I spent too much time debugging Excel macros or struggling with the plumbing when I first starting playing with the Visual Studio Tools for Office (VSTO). It seemed like more work that it was worth. This was a shame because Office has some great advantages as a compliment to custom application development.
With the latest release of Office 2007 and Visual Studio 2008 the plumbing for extending the UI around Office applications has drastically improved. I created the attached video (no audio on this one) to show a quick example (7:34 to be exact) of how to create a Word add in. In this example I take the following steps:
This is a fairly simplistic example, but enough to get started. I have written some other demos that hook up the user control to a SQL Server database to populate form letters from customer data. If you are interested in learning more, I'd suggest checking out the VSTO on MSDN. One other thing - VSTO used to be a separate product that you needed to purchase on top of Visual Studio. With VS 2008 Professional, VSTO is included right in the box.
Double click the video once it starts to see it full screen. You can double click again on the full screen to go back to regular view. If you are reading this in an RSS reader, you most likely need to go to the site to see the video.
This video was published via Silverlight Streaming.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.