Provides information about extended objects (provided by the Visual Studio Tools for Office runtime) that you can use in Word solutions. Provides an overview of the main types provided by the Word object model. The following table lists customization options that are available only to VSTO Add-ins. How to: Add XMLNodes controls to Word documents How to: Add XMLNode controls to Word documents How to: Add an actions pane to Word documents or Excel workbooksĪdd extended XMLNode and XMLNodes controls to the document surface. The following table lists customization options that are available only to document-level customizations. Options for document-level customizations How to: Add bookmark controls to Word documents How to: Add content controls to Word documents
#CREATE TEXT BOX IN WORD USING VISUAL STUDIO WINDOWS#
How to: Add Windows Forms controls to Office documents TaskĪdd Windows Forms controls or extended Word controls to the customized document (for a document-level customization) or to any open document (for a VSTO Add-in). The following table lists customization options that are available to both document-level customizations and VSTO Add-ins. Some options are available to all project types, and other options are available only to VSTO Add-ins or document-level customizations. There are several different ways to customize the user interface of Word. This class provides a starting point for writing your code, and it also exposes the object model of Word to your VSTO Add-in.įor more information about the ThisAddIn class and other features you can use in a VSTO Add-in, see Program VSTO Add-ins. When you create a Word VSTO Add-in project, Visual Studio generates a class, called ThisAddIn, which is the foundation of your solution. For more information, see How to: Create Office projects in Visual Studio.įor general information about how VSTO Add-ins work, see Architecture of VSTO Add-ins. To create a VSTO Add-in project for Word, use the Word Add-in project templates in the New Project dialog box of Visual Studio. Unlike a document-level customization, which is associated with a specific document, functionality that you implement in a VSTO Add-in is not restricted to any single document. The assembly typically extends Word by customizing the UI and by automating Word. Develop VSTO Add-ins for WordĪ VSTO Add-in for Microsoft Office Word consists of an assembly that is loaded by Word. This class represents the document that is associated with your solution, and it provides a starting point for writing your code.įor more information about the ThisDocument class and other features you can use in a document-level project, see Program document-level customizations. When you create a document-level project for Word, Visual Studio generates a class, called ThisDocument, which is the foundation of your solution. For more information, see How to: Create Office projects in Visual Studio.įor more information about how document-level customizations work, Architecture of document-level customizations. To create a document-level customization project for Word, use the Word Document or Word Template project templates in the New Project dialog box of Visual Studio. Unlike a VSTO Add-in, which is associated with Word itself, functionality that you implement in a customization is available only when the associated document is open in Word. The assembly typically extends the document by customizing the UI and by automating Word. Develop document-level customizations for WordĪ document-level customization for Microsoft Office Word consists of an assembly that is associated with a specific document. For more information, see Automate Word by using extended objects. The extended objects behave like the Word objects they are based on, but they add additional events and data binding capabilities to the objects. These are objects that extend certain commonly used objects in the Word object model, such as the Document and ContentControl objects. When developing Word solutions in Visual Studio, you can also use host items and host controls in your solutions. For more information, see Word object model overview. For example, you can programmatically create tables, format documents, and set the text in ranges and paragraphs. The Word object model exposes many types that you can use to automate Word. This topic provides the following information:ĭevelop document-level customizations for Word. Office Add-ins have a small footprint compared to VSTO Add-ins and solutions, and you can build them by using almost any web programming technology, such as HTML5, JavaScript, CSS3, and XML. Interested in developing solutions that extend the Office experience across multiple platforms? Check out the new Office Add-ins model.