Nested Word fields behave differently in header/footer in Word 200

J

Johan Hanson

Background:
I am using a field to display a pictures in a Word template. The field
checks a document property and if it is not empty it displays an autotext
that corresponds to the value of the document property.

Simplified the field code goes like this:

{IF "a" = "b" "text" {AUTOTEXT {DOCPROPERTY MyDocProp}}}

The field works as expected in Word 2000 and Word XP - it displays the
message 'Error! AutoText entry not defined.'. When I set the document
property, add an autotext and update the field the autotext shows as
expected.

Problem description:
This works fine in Word 2003 as long as I place the field in then main part
of the document. But when I place this field in the header or footer of a
document it does not work. Instead of displaying the error nothing is
displayed (the field result is empty). Even when the document property is set
and the autotext exists nothing is shown. If I manually update the fields
from inside and out each field displays correctly until I get to the outer IF
field.

I could of course insert the autotext in some other way but this is part of
a quite complex solution and I would have to change a lot of things to get
around it.

I have searched support.microsoft.com but I have not found anything
regarding changes in the field behavior... Does anybody know?
 

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