다음을 통해 공유


Office Primary Interop Assembly Code Examples

Office Primary Interop Assembly Code Examples

You can download code samples that have been developed around the most important concepts used when programming with the Microsoft Office Word, Microsoft Office Excel, and Microsoft Office Core object models. The following table details the topics covered in the samples, for each application.

Application Sample details working with…

Microsoft Office Excel

The Excel Microsoft.Office.Interop.Word.Application interface

Charts

Lists

Pivot tables

Ranges

Workbooks

Worksheets

XML features

Microsoft Office Word

The Word Microsoft.Office.Interop.Word.Application interface

Documents

Ranges

Selections

Bookmarks

Tables

XML features

Microsoft Office

Command Bars

Each sample allows you to enter custom parameters for the methods that are exposed, and then see the code syntax generated in C# or Visual Basic .NET. From the same interface, you can also choose to run the code and let it automate Word and Excel.

See Also

Concepts

Overview of Classes and Interfaces in the Office Primary Interop Assemblies
Office Primary Interop Assembly Reference Documentation Conventions