Microsoft Office Tutorials and References
In Depth Information
Programming in Word
Programming in Word
in Word
When programming in Microsoft Office Word 2007, the tools and techniques
needed to program using C# for applications are VSTO 3.0, Visual Studio 2008, and
the .NET framework. So far, we've learned that by using VSTO 3.0, we can program
forms, controls, objects, and error handling, and have learned that VSTO 3.0 enables
rapid application development for Microsoft Office solutions. VSTO 3.0 gives
the Office developers the flexibility to create document-level customizations and
application-level add-ins by using Visual C#, .NET, and Visual Studio 2008.
Microsoft has come up with a variety of Word 2007- supported objects that are
exposed from the Office object model, allowing Office developers to program against
the exposed objects for the development and customization of Word 2007. In general,
while automating the Office applications using managed code, you program against
the primary interop Office assemblies .
A primary interop assembly is an exceptional, vendor-supplied assembly
that includes type definitions. A single primary interop assembly can
wrap more than one version of the same type of library.
In VSTO 3.0 solutions, you can write code against the host items in your VSTO
projects. The following table provides an overview of the assembly reference changes
in VSTO 3.0:
Before VSTO 3.0 full release
After VSTO 3.0 full release
This quick overview will help VSTO 3.0 developers to understand how the new
version differs from the previous version.
Word host items
Host items present a way in for our code in Visual Studio Tools for Office solutions.
Host items and host controls are the two classes that provide us the programming
models for the Visual Studio Tools for Office solution. This interacts well with Office
COM components, just as object model interaction takes place.
Search JabSto ::

Custom Search