![]() 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. ObjCC.SetPlaceholderText, , "Select your favorite animal "ĬontentControl Object Support and feedback Set objCC = (wdContentControlDropdownList) The following example inserts a new drop-down list content control into the active document, sets the title and placeholder text, and then inserts several new items into the list. If all parameters are omitted, the placeholder text is blank. name of the file which will be saved const string filename 'test.docx' //html string to be inserted and rendered in the word document string html 'Test' //the Html2OpenXML dll supports all the common html tags //open the template document with the content controls in it (in my. ![]() If more than one parameter is used, Microsoft Word uses the text specified in the first parameter. I managed to fix this and here is the code I used. Only one of the parameters is used when specifying placeholder text. Specifies the contents of the placeholder text. Specifies a Range object that contains the contents of the placeholder text. Specifies a BuildingBlock object that contains the contents of the placeholder text. SetPlaceholderText( _BuildingBlock_, _Range_, _Text_ )Įxpression An expression that returns a ContentControl object. Sets the placeholder text that displays in the content control until a user enters their own text.
0 Comments
Leave a Reply. |