If youve gone into Design Mode and changed the placeholder text, then the copy in the IF field should be the modified text. To create the string for the comparison in the IF field, copy and paste the content of the second bookmark. You can check the “Content control cannot be deleted” (Marked as ) to make sure user cannot delete the controls by mistake. A content control is never 'empty' if there is nothing entered, it shows the placeholder text.In case of drop down list add possible value (Marked as ).Set a meaningful Title (Marked as ) which you can use in code.You can drag and drop control from Ribbon (Marked as ) and set properties.Make sure you are at Developer tab (Marked as ) This approach helps in avoiding the null issue irrespective of whether text is selected or whether it is in between characters.Click OK to close the Options dialog box. Change (real time change) in the text CC does not trigger the event. Then add this code: Change in either the dropdown or checkbox will trigger the event but a RTE occurs. In the list of main tabs, select Developer. Add a dropdown CC tagged DD, a checkbox CC tagged CB and a text CC tagged 'Text' to a document and bind them to a customXMLPart.In the categories pane, click Customize Ribbon.To accomplish this, first enable the developer tab: ( Steps from MS): Note: The Check Box content control is new in Word 2010 and was not available in Word 2007. And then we will enter these values into the main system without any delay. Programmatically we can extract and process these values very easily. In the template file, we will have content controls (textbox, drop down list etc). This option is available in the plain text control but, if you use a rich text control then, that option is not available. Generally, there are data entry people who entered these values manually but with very minimal effort we can automate the process.We can give template MS Word file to those users which they will fill up and submit each month/year. Switch to design mode, edit the Content Control Properties and select Allow carriage returns (multiple paragraphs). Those files definitely contain quantitative & qualitative data that need to be entered into the main system, used by the company, for review and future planning. Imaging cases, where a user submits their monthly/yearly report by MS Word file. Content control is one of the cool features in Microsoft Word 2010 (first introduced in 2007).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |