Managed Add-Ins
Back to TOCCondensed TOC
Extend the Office client applications using C# and Visual Studio Tools for Office (VSTO)
- Designing a Content Publishing System
- Associating Data with Content Controls
- Programmatically Limiting Styles in Word
- Increasing Performance of Word Automation for large amount of data using Open Xml SDK
- Using Nested Content Controls for Data and Content Extraction from Open XML WordprocessingML Documents
Explains an approach for using styles and content controls for implementing an authoring environment for a publishing system. (Article)
You may have the need to associate arbitrary amounts of data with each content control. You may also have the requirement that the document author can create and edit this auxiliary information. Content controls don’t directly have a facility for storing and maintaining such information, but there is a fairly easy approach to solving this problem. (Article)
Authoring in Word makes publishing systems very user friendly. After the user authors his or her paper, you can transform Open XML WordprocessingML to the desired output format. Some publishing systems use an approach of limiting the paragraph and character styles that the author can use. This can help in writing a more deterministic transform to the output format. (Article)
Sometimes in the process of building a managed add-in, you want to insert a large amount of content into a document – perhaps hundreds of paragraphs or hundreds of rows in a table. Using Word automation can be slow. It was not designed for this scenario. But there is a way to dramatically speed up this process by processing/creating Open XML from within the managed add-in using the Open XML SDK. (Article)
Data and content extraction is one of the scenarios where content controls are very useful. Data extraction is when you are extracting specific numbers or string values from a document. Content extraction is when you are extracting formatted WordprocessingML tables and paragraphs, and constructing another document from that content. (Article)