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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |