Skip to main content

Word solutions with Visual Studio

Visual Studio 2010 and Visual Studio 2008 provide project templates you can use to create application-level add-ins for Microsoft Word. You can use add-ins to automate Word, extend Word features, or customize the Word user interface.

Getting started

Topic
Description
Install Office developer tools, including the Visual Studio Tools for Office runtime and project templates and designers.
Explore topics that help you use the Office developer tools in Visual Studio 2010.
Find answers to common questions about programming Office solutions.
Create a document-level customization for Microsoft Word.
Create an application-level add-in for Microsoft Word.
Use Visual Studio to create an Office Business Application binding data to content controls.
Use developer tools designed to complement Visual Studio Tools for Office.
Interact with the objects that are provided by the Word object model.

Working with documents

Topic
Description
Step-by-step procedures and code examples for using the Word object model.
How to set document properties in Excel and Word.
Create and modify custom document properties when there is additional information to store with the document.
Add pictures and drawing objects to documents at design time or during run time.
Add Bookmark controls to document-level project at design time or at run time and at run time for application-level projects.
Use the Dialog object to get or set data contained in the corresponding dialog box.
Methods and properties used to perform tasks with Word documents.

Working with text

Topic
Description
Learn how write code that interacts with text in a variety of ways in Word documents.
The Document class contains the methods and properties you use to perform tasks with Word documents.

Working with tables

Topic
Description
Write code that interacts with tables in a variety of ways in Word.
Methods and properties used to perform tasks with tables in Word.

Working with templates

Topic
Description
Create a document-level customization that uses content controls to create structured and reusable content in a Word template.
Create document templates programmatically for Word 2007.

Working with data

Topic
Description
Bind Windows Forms controls and host controls on a Word document or Excel worksheet to a data source so the controls automatically display the data.
Access data in document-level projects for Office the same way that data is accessed in Windows Forms projects.
Bind a host control to a data source and update the data source with the changes that are made to the data in the control.
Build a solution connected to remote data using the native capabilities of an Office client application combined with the UI capabilities of WPF.
Bring bug data from Team Foundation Server into Excel and Word using VSTO for analysis.
A simple Office Business Application used by the new Northwind Traders.
Bind data to host controls and Windows Forms controls in application-level projects.
Data binding to controls on an actions pane demonstrating a master/detail relation between tables in a SQL Server database.
Bind data to host controls in application-level projects.
Content controls provide a UI that is optimized for both user input and print.
Add Content Controls to Word documents that bind to data.
Learn how to add Content Controls to Word documents that bind to data.
The basic steps involved in binding content controls to custom XML parts.
Use Visual Studio to create an Office Business Application binding data to content controls.
Create a Word add-in that includes a custom task pane which is launched by a ribbon button.
Visual Studio Tools for Office solution for maintaining a local database such as a SQL Server Express file or Access file.
Use the Microsoft Office platform to create a custom solution that allows multiple users to collaborate on the creation of a document.
Cache data objects in a document-level customization so the data can be accessed offline.
Access data that is contained in a document on a server that does not have Word installed.

Customizing the UI

Topic
Description
Add Windows Forms controls to a Microsoft Office Word document in same manner as adding controls to Windows Forms.
Build a solution connected to remote data using the native capabilities of an Office client application combined with the UI capabilities of WPF.
Use WPF as an alternative to Windows Forms for designing user interfaces.
Using the Word and Excel command bar in Visual Studio Tools for Office.
Use the Ribbon add controls to any open Word document by using an application-level add-in.
Topic
Description
Add the Ribbon (Visual Designer) or the Ribbon (XML) Ribbon items to your Office project.
Display the Developer tab on the Ribbon.
Customize the Ribbon by adding a Ribbon (Visual Designer) or Ribbon (XML) item to an Office project.
Add a command to a shortcut menu in Word by using an application-level add-in.
Create a custom Ribbon tab by using the Ribbon Designer.
Set the width of a drop down control by using the Ribbon Designer.
Change the order of tabs on a Ribbon by using the Tab Collection Editor.
Add groups and controls to a tab that is already on the Ribbon.
Remove custom menu items that appear in your instance of Word.
Design a Ribbon by using the Ribbon visual designer then re-use that same Ribbon in more than one Office application.
Use the Ribbon (XML) item to customize the Ribbon in a way not supported by the Ribbon (Visual Designer) item.

Working with custom task panes

Topic
Description
Learn how to add an Actions Pane to a Word Document .
Learn how to add a custom task pane by using an application-level add-in.
Use data binding to controls on an actions pane to demonstrate a master/detail relation between tables in a SQL Server database.
Create a control so that as the cursor is moved through a document, controls on the actions pane are hidden or become visible responding to XMLNode events.
Write code to stack the user controls on the actions pane.
Create a custom task pane that users can hide or display by clicking a toggle button on the Ribbon.
Create a Word 2007 add-in with a custom task pane launched by a ribbon button to insert a map into a document.

Working with Smart Tags

Topic
Description
Learn how to enable Smart tags in Word or Excel on the end user computer.
Add smart tags to Word by using a document-level customization or an application-level add-in.
Control how Word recognizes smart tags in documents.
Create an application-level smart tag that you can use in every open document.
Create a smart tag in a document-level customization for Word.
Create custom smart tags with custom recognizers in Word by using Visual Studio.

Working with XML

Topic
Description
Map an XML schema to a document while the document is open in Visual Studio.
Create a custom XML part in a document-level customization to store XML data.
See how Visual Studio automatically adds an XMLNode control to your document when non-repeating XML schema elements are mapped
Store XML data by creating a custom XML part in an application-level add-in.
Use Visual Basic's implementation of LINQ to XML to manipulate Office documents.
Create a control so that as the cursor is moved through a document, controls on the actions pane are hidden or become visible responding to XMLNode events.
The basic steps involved in binding content controls to custom XML parts.

Using Open XML

Topic
Description
Explore the architecture and advantages of using the Open XML Format SDK in order to assemble and and manipulate data in Word 2007.
Walk through the new default file format for Microsoft Office Word 2007.
Learn how to embed images as well as text into Office document formats directly without using COM.
Learn how to merge data into a single Word document directly without using COM.
Use Visual Basic's implementation of LINQ to XML to directly manipulate Office documents.
Use Word 2007 to create and use a purchase order containing data, query that data and place the data into a database.
Use Open XML Formats and the .NET Framework to display a number of data items in a Word 2007 documen.
Add a custom XML part to a document without starting Microsoft Office.
Word site:
|
|
|
|
|
|
|
|