![]() Not all content control properties apply to all the different types of content controls. This displays above the control when the cursor is positioned inside the control or the mouse pointer is positioned over the control.ĭepending on the type of content control that you have, you may not be able to use all the properties and methods of the ContentControl object. Use the Title property to specify the title text for the control. Use the SetPlaceholderText method to change the placeholder text from the default string to something more appropriate for the control. The following example inserts a date content control and sets the value of the control, and then changes the control to a text content control. For example, if the content control that you want to change to does not allow the type of content that is in the existing content control, attempting to change the type is not allowed and generates a run-time error. In addition, depending on the contents of a content control, you may not be able to change the type. However, you may not be able to change all content controls to another type some may not allow changing their type. For example, perhaps you want to change from a date control to a text control. Use the Type property to change the content control to a different type of content control. Set objCC = (Type:=wdContentControlDropdownList) The following example create a new drop-down list content control and adds several items to the list. Use the Type parameter of the Add method to specify the type of content control to create. Use the Add method of the ContentControls collection to create a content control. The ContentControl object is a member of the ContentControls collection. Individual content controls may contain contents such as dates, lists, or paragraphs of formatted text. ![]() Content controls are bounded and potentially labeled regions in a document that serve as containers for specific types of content. Tomorrow: Customize the Details view in Windows Explorer.An individual content control. I'll keep experimenting, though, and I'll let you know if I find the solution. Unfortunately, I couldn't get this function to save the form content when I tested it. In Word 2007 you should be able to do the same by clicking the Office button, choosing Save As > Word Document > Tools > Save Options, selecting the Advanced tab in the left pane, scrolling to the "Preserve fidelity when sharing this document" section in the right window, checking "Save form data as delimited text file," choosing Plain text (.txt) in the Save as type drop-down menu, and clicking Save > OK. When the forms are returned, you can collect the data as comma-separated values in a text file (.txt) in Word 2003 by selecting File > Save As > Tools > Save Options, checking Save data only for forms, and clicking OK > Save > OK. In Word 2003, ensure that the lock icon at the far right of the Forms toolbar is selected. In Word 2007, place the cursor in the field, click the Properties button in the Contents section of the Developer ribbon (or right-click and choose Properties), and make sure "Contents cannot be edited" is unchecked. Now the form is ready for distribution, but first make sure your recipients can add text and otherwise access its fields. When you're ready to distribute your form, open a new Word document, and choose the template from the list that appears. When your form controls are in place, save the file using the. Set the date format used in your form's calendar control via its Properties dialog box in Word 2007.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |