Content controls and repeating data - any new insights?

F

Flamingo9000

I spent the whole afternoon trying to get a template to work in which I would
like the date and document title to be repeated on every page using content
controls. I found a number of solutions, ranging from using the document
properties (most common solution) to adding specific VB code to the template.

While Greg Maxey's renowned "Repeating Data (Section 7)" is very helpful, in
the end all these solutions fail to explain how Word 2007's integrated
templates succeed in repeating data without needed any of these solutions.

I had a closer look at one of the standard templates, namely the "Equity
Report": the title and date controls are replicated throughout the document,
and changing the value of any of them instantly updates all the others. The
document does not contain any bookmarks, and no custom VB code either as far
as I could see.

Some of the controls do not even have a title or tag and are still updated
automagically... I am at a complete loss to explain this. Any ideas, anyone?
It is very frustrating not being able to do the same without reverting to
hacks :|
 
J

Jay Freedman

Have a look at another of Greg's pages,
http://gregmaxey.mvps.org/Mapped_Content_Control.htm.

The thing that makes the content controls repeat data is that they're linked
to the same piece of XML in the document. While you could possibly do this
"by hand", Greg's add-in makes it a pushbutton operation.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
F

Flamingo9000

Ok, that makes sense - I just wonder how you link them, or how you can see
what piece of data they are linked to. As I mentioned, one of the controls in
the "Equity Report" template does not even have a title or tag assigned to
it. Is it possible this is something that happens behind the scenes when you
have copied a control?

I'll install Greg's Add-In anyway and see how that works out. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top