![]() However, in Word 2013 you can map rich text content controls to a CustumXMLPart. Once you send a document to someone else and the link with the template is broken, the new user is unable to use those building blocks. This means that you can only use and employ building blocks when you have access to the template that they are stored in. All of these possibilities conspire to make a plain text building blocks rare and "rich text" building blocks common!īuilding blocks are stored in templates. A building block may also contain, in addition to text, other objects such as charts, graphs, or shape objects. With the exception of the most basic text building blocks a building block, in addition to the basic text, will contain a variety of text attributes (e.g., font size, color, spacing, etc.). This final technique is a limited to Word 2013 users (and Word 2013 compatible file formats) which has the capability to map rich text content controls.īasically, a building block is the saved (or stored) content of a defined range. Perhaps you can employ this technique to create you own dynamic document such as an inspection report or property listing. The content controls in column 1 are "empty" dropdown content controls titled "Item." The project template for this demonstration consists of a single four column Word table with content controls as shown below. However, since the data in the external file is contained in a document CustomXMLPart, the document functions for these users just as it functions for you! In this demonstration, I'm going to convert raw data stored in an external Word document table into XML data stored as a CustomXMLPart in the project template file.ĭocuments created from the project template can be sent to other users who do not have access to the external file. ![]() This first technique is probably a more traditional use of XML data. ![]() structured and stored according to Extensible Machine Language (XML) format and rules.Basic Data StoreĪs explained in CustomXML "Helpful" Help for Word, a CustomXMLPart is basically: This tips page demonstrates three ideas and techniques that I developed for employing a CustomXMLPart in a Word document. While I was learning more and more about what CustomXMLParts are, I kept asking myself what I might be able to use them for and so, I started tinkering. Of course I had been aware of CustomXMLParts since they were first introduced with Word 2007 but, with the exception of using them for simple Cntent Control Mapping, they had remained a bit of a mystery to me. Not long ago, I became interested in working with CustomXMLParts in VBA procedures and I published CustomXML "Helpful" Help for Word. If you've spent any amount of time browsing my various tips pages, that should not come as a surprise. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.I'm a tinkerer. ObjBB.BuildingBlockType = wdTypeEquationsĬontentControl Object Support and feedback ![]() Set objBB = (wdContentControlBuildingBlockGallery) The following example creates a new building block content control and specifies the type of building block and the gallery. You can set this property to any string however, if you set it to a string for which there is no corresponding category, the value of the Category option is set to "(All Categories)". This property applies only to building block content controls and corresponds with the Category option in the Content Control Properties dialog box. SyntaxĮxpression An expression that returns a ContentControl object. Returns or sets a String that represents the category for a building block content control. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |