I have a rich text content control on a Word 2007 document which is auto-populated from a database query. The control just contains text but ideally I'd like to be able to insert a new line inside the content control so that the text appears like a list. I wrote the SQL query so that it inserted carriage return characters for me, but these are ignored in the content control. I thought I could edit the text in the control when the document appeared - I can add/delete characters and spaces but hitting the 'Enter' button on the keyboard does nothing.

Has anyone found a way to insert line breaks inside the content control?

link|improve this question
feedback

2 Answers

When editing a rich text content control manually, hitting Shift+Enter inserts a new line. Can you provide more details on how you are populating your content control?

link|improve this answer
Shift+Enter doesn't work for me. I thought I had tried that and Ctrl+Enter but nothing seems to add a line break. I can edit it with text characters and spaces. Populating the content control is done with a database call which does a FOR XML to provide the data in xml format. I used the Word 2007 Content Control Toolkit download: dbe.codeplex.com/releases/view/695 to map the content controls to xml nodes. The data in the xml node then gets substituted automatically into the content control. Mike Ormonds blog is very good: blogs.msdn.com/b/mikeormond/archive/2006/08/17/704579.aspx – John J Smith May 23 '11 at 8:18
feedback

Switch to design mode, edit the Content Control Properties and select Allow carriage returns (multiple paragraphs).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.