You cannot use content controls in documents that are saved in the Word 97-2003 document (. You can use content controls only in documents that are saved in the Open XML format. For more information, see How to: Add content controls to Word documents. In VSTO Add-in projects, you can add content controls to any open document at run time. In document-level projects, you can add content controls to your document at design time or at run time. NET Framework, XML elements that are stored in the document, and other data sources. You can bind content controls to database fields, managed objects in the. This is useful if you have information in a document or template that users should be able to read but not edit, or if you want users to be able to edit content controls but not delete them.īind parts of a document or template to data. Prevent users from editing or deleting parts of a document. After the user chooses a date, the UI of the control is hidden, and only the date appears if the user prints the document.Ĭontent controls also help you do the following: You can also set properties of the control to set the regional calendar that is displayed and to specify the date format. When users click the control, the standard date picker UI appears. The border and the title of the control do not appear in printed versions of the document.įor example, if you want the user to enter a date in a section of your document, you can add a date picker content control to the document. When you add a content control to a document, the control is identified by a border, a title, and temporary text that can provide instructions to the user. For more information, see Features available by Office application and project type.įor a related video demonstration, see Bind data to Word 2007 content controls using Visual Studio Tools for the Office system (3.0).Ĭontent controls provide a UI that is optimized for both user input and print. For more information, see Bind data to content controls.Īpplies to: The information in this topic applies to document-level projects and VSTO Add-in projects for Word. For more information, see Protect parts of documents by using content controls.ĭata binding to a data source. Restrictions that prevent users from editing protected sections of the document or template. Applies to: Visual Studio Visual Studio for Mac Visual Studio CodeĬontent controls provide a way for you to design documents and templates that have these features:Ī user interface (UI) that has controlled input like a form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |