![]() A structured document controls where content appears within the document. Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages. Content controls in Word are containers for content that let users build structured documents. General News Suggestion Question Bug Answer Joke Praise Rant Admin Var sdtBlocks = .ChildElements īut can't pass this to a function that loop through the children calling itself to get to the next child.Īny Ideas? (no one seems to look at this page lol) The question is how do I loop through the child of every element until I reach the Tag property? My problem is I can do The content control is actually in the path Var sdtBlocks = .ChildElements.OfType() Īs this is only returning SdtBlocks. If the content control is in a shape then it does not show in the top level of the The second is how do I add carriage returns to an XML element, which is passed into a content control, so there are paragraphs in my Word doc?īut there is a new problem. The first is the ability to read font and font colour, size etc from my XML document and use this to change the text in Word as specified. However I'm stuck on two points that would be really good to implement. I managed to figure it out by copying classes and routines from WordDocumentGenerator. I can't however seem to port that functionality into yours. However that allows the removal of the content controls whilst retaining the text in the content control. I started looking at WordDocumentGenerator which seems far more complicated than your approach.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |