Export (0) Print
Expand All

Controls on Office Documents

You can use the Office development tools in Visual Studio to add Windows Forms controls and host controls to Word documents and Excel worksheets. Host controls are objects that extend various user interface (UI) objects in the Word and Excel object models.

Applies to: The information in this topic applies to document-level projects and application-level projects for the following applications: Excel 2013 and Excel 2010; Word 2013 and Word 2010. For more information, see Features Available by Office Application and Project Type.

When you develop application-level projects for Excel or Word, you can programmatically add these controls to any open document or workbook at run time.

When you develop document-level projects for Excel or Word, you can programmatically add these controls at run time, or you can use the Visual Studio designer to add these controls to the document or workbook in your project at design time.

Host Items and Host Controls Overview

Describes the functionality of host items and host controls, including programming against events, binding the controls to data, and how the controls differ from the native objects.

Programmatic Limitations of Host Items and Host Controls

Describes the issues that you might encounter when you use host items and host controls in code.

Windows Forms Controls on Office Documents Overview

Provides information about using Windows Forms controls on Excel and Word documents and how they differ from controls on a Windows Form.

Adding Controls to Office Documents at Run Time

Describes how to add Windows Forms controls and host controls to Word and Excel documents, and describes limitations about how these controls persist in the document.

Office UI Customization

Provides information about different ways to customize the UI of Microsoft Office applications by using Visual Studio.

Binding Data to Controls in Office Solutions

Describes how you can display data in Word and Excel documents by binding the data to host controls within the document.

Show:
© 2014 Microsoft