Book Image

VSTO 3.0 for Office 2007 Programming

By : Vivek Thangaswamy
Book Image

VSTO 3.0 for Office 2007 Programming

By: Vivek Thangaswamy

Overview of this book

With the arrival of Visual Studio Tools for Office 3.0 (VSTO), developers can now program Microsoft Office from the .NET framework. There are huge books in the market that give loads of unnecessary information but are of no real help to brand-new Office developers. Wouldn't it be great to have a precise book that simply covers the basics and introduces programming Office 2007 with VSTO using the latest version of Visual Studio? This is that book. VSTO 3.0 for Office 2007 Programming shows you how to write Office 2007 applications with Visual Studio Tools for Office 3.0. Learn how to automate tasks in InfoPath, Word, Excel, Outlook, PowerPoint, Visio, and Project 2007 with greater programming power and flexibility than was available from the VBA language. With this book and the mastery of VSTO you will learn, Office will no longer be an application to you; it will be a platform for developing custom applications.VSTO 3 is the most recent version of VSTO, making use of Visual Studio 2008, and working with Office 2007. This book shows how VSTO puts Office automation into the hands of developers, allowing them to use the power of the .NET framework to automate Office applications thus increasing the speed of the applications, their security, and the opportunity to use other parts of the .NET Framework such as its data handling capabilities. This book builds a solid programming foundation in VSTO for brand-new Office developers. You will leave behind the world of VBA programming and take your first steps into the powerful and exciting world of using C# to create Office 2007 applications. Packed with examples and covering all the main Office applications, this book will have you creating fully featured Office extensions before you know it.
Table of Contents (11 chapters)
VSTO 3.0 for Office 2007 Programming
Credits
About the Author
About the Reviewers
Preface

Programming PowerPoint 2007


VSTO 3.0 provides enhanced support for PowerPoint 2007 to satisfy a user's needs. Currently, VSTO 3.0 supports only application-level customization for Microsoft Office PowerPoint 2007.

Let's consider the following scenario—Zack wants to say hello to all of the PowerPoint 2007 users in the office, and Zack is interested in doing this by using VSTO and Visual Studio 2008. The following example demonstrates, how Zack said hello to all of the PowerPoint 2007 users by using VSTO programming.

Let's see how to create the solution for Microsoft Office PowerPoint 2007 using Visual Studio 2008 and write a Hello program as your first programming example, using VSTO 3.0 for Microsoft PowerPoint 2007.

  1. 1. Open Visual Studio 2008, to create a new PowerPoint 2007 Add-in template project.

  2. 2. Select New Project. Under Office select 2007, and then select the Microsoft PowerPoint Add-in template, and name the project as per your requirements.

  3. 3. The solution will be created with all...