Visual Studio Tools for Office: Using C# with Excel, Word, Outlook, and InfoPath (Microsoft .NET Development Series)

Visual Studio Tools for Office: Using C# with Excel, Word, Outlook, and InfoPath (Microsoft .NET Development Series)
Authors
Eric Carter, Eric Lippert
ISBN
0321334884
Published
18 Sep 2005
Purchase online
amazon.com

Visual Studio Tools for Office (VSTO) was released in August of 2003. It brought the power of .NET to developing Word and Excel applications. While powerful, it was also lacking in some key features, and difficult to use. VSTO 2005 will be released as part of the Whidbey release. It will be incorporated in the more advanced versions of Visual Studio .NET 2005, and will also be available as a stand-alone product.

Page 2 of 2
  1. Editorial Reviews
  2. Customer Reviews

Customer Reviews

Norm Fox said
If you just want to switch from VB to C# and are looking for a good how to reference this is not the book for you especially as it pertains to Microsoft Word. There is a solid description and how to for the range object, but that's about it. Word's Bulleted/Numbered List object, arguably the most convoluted of them all, doesn't even get mentioned and tables are glossed over in barely 2 pages.

Michael Kerr said
THERE IS NO CODE Download, you get to ALL THE DOCUMENTS YOUR SELF, I have read most of the word portion (that's why I bought the book) If I had written this book I would have created an integrated application. That's what office is all about right? I think this is a great egghead book, but for learning TERRIBLE.

Pass on this, wait for the wrox book; even if it sucks, I am sure it would be better than this. AW would you like me to write a book? I can bang out something more practical in a weekend!

M~

Thomas Duff said
Part of my 2006 professional goals involve learning more about Microsoft's collaboration software. To that end, I got a review copy of Eric Carter and Eric Lippert's book Visual Studio Tools for Office - Using C# with Excel, Word, Outlook, and InfoPath. Good stuff here...

Contents:
Part 1 - An Introduction to VSTO: An Introduction to Office Programming; Introduction to Office Solutions
Part 2 - Office Programming in .NET: Programming in Excel; Working with Excel Events; Working with Excel Objects; Programming Word; Working with Word Events; Working with Word Objects; Programming Outlook; Working with Outlook Events; Working with Outlook Objects; Introduction to InfoPath
Part 3 - Office Programming in VSTO: The VSTO Programming Model; Using Windows Forms in VSTO; Working with Action Pane; Working with Smart Tags in VSTO; VSTO Data Programming; Server Data Scenarios; .NET Code Security; Deployment
Part 4 - Advanced Office Programming: Working with XML in Excel; Working with XML in Word; Developing COM Add-Ins for Word and Excel; Creating Outlook Add-Ins with VSTO
Index

The two Erics have put together a very nice volume that shows how the programmability of Office is structured, and then how that object model can be used within the Visual Studio environment using special tools provided for that purpose. While you have to have the latest and greatest Office and VS software to follow along, their writing style is pretty straight-forward, and the reader should be able to pick up on the core concepts to understand the possibilities inherent in the integration. Even if you're not necessarily ready to fire up VS to program Word or Excel, Part 1 and 2 do a great job in showing the object layout of those Office components and how they can be manipulated. If you've never gotten into the code that can be added to a Word or Excel document, those two parts of the book would be worth it alone.

For me, I'm going to gain two benefits from this book. First, the object model information will help me better integrate Office into my Notes/Domino applications. I do some of that now, but the object model for Excel and Word have always been somewhat hazy to me. This book will help clarify those areas. Second, I think that knowing more about InfoPath will be part of my process as I seek to understand more about Microsoft collaboration application development. As a result, having this book should help me tie InfoPath into the Visual Studio environment and get a running start on my education.

Definitely a useful addition to your library if this is an area of interest to you...

W Boudville said
This book ties together two longstanding traits of Microsoft, that long predate C# or .NET. The first is its Office suite, which is one of its main moneyspinners. The second is its tradition, going back to the early 80s, if not earlier, for writing nice development tools for programmers.

Undoubtedly, when Microsoft devised C#/.NET a few years ago, the abilities given in this book would have been a major goal. The book promises a synergy between C# and Office. The attraction is of course the huge user base for Office. To this ends, the book describes many ways to open up Office to programmatic control and customisation.

The code examples don't even seem all that hard, conceptually. No doubt, they were well chosen for this reason. The size of the book reflects its natural division. There are sections that correspond to the components of Office- Excel, Word, Outlook.

You can also see from the examples that there are groups of classes, in an object hierarchy that is very logically named so that you can easily get at the underlying data. For example, a worksheet under Excel is accessed as [naturally] Excel.Worksheet.

Open source proponents might decry this further lockin of a developer into Microsoft's arms. But if you are willing to put up with that, it has to be said that Microsoft does provide a lot of support.

Jack D. Herrington said
This is a solid walkthrough of building C# automation code for Office, and for writing code that integrates into Office. Excel is covered in depth. As are Word, Outlook and the fascinating new Infopath product that is an XML technologies client.

The writing is good. I could have used a few more non-screenshot graphics to illustrate the control flow between applications. But these are nit-picks. This is a solid book on automating and integrating with office using C# and .NET framework.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky