Autotext, {IF} and absolutely placed items

B

Bernhard Mäder

Hi again

I'm trying to show/hide certain graphical elements in my document's
headers and footers. So, the elements get placed in an autotext entry.
Then, using something like

{IF {DOCPROPERTY ShowStuff} = Y {AUTOTEXT GraphicalElement} ""}

I make them show up or hide depending on the ShowStuff boolean document
property, which I am now able to modify through VBA.

This is principally working fine. The problem is that, when in layout
mode and viewing two (or more) pages at the same time (even when viewing
but the bottom of page 1 and the top of page2...), word is ceaselessly
updating the graphics. This goes that far that the user is unable to do
much more than to scroll away from that particular view.

I should note that the autotext entries are absolutely (relative to
page) placed graphical elements (pictures, lines, boxes). This does not
happen, if I place just the autotext entries (without the IF). It also
doesn't happen if the autotext entries are positioned relative to text.

I'm using Word 2002 SP3

Am I doing something wrong here?

Thanks a lot!

Bernhard
 
B

Bernhard Mäder

Bernhard said:
Hi again

I'm trying to show/hide certain graphical elements in my document's
headers and footers. So, the elements get placed in an autotext entry.
Then, using something like

{IF {DOCPROPERTY ShowStuff} = Y {AUTOTEXT GraphicalElement} ""}

I make them show up or hide depending on the ShowStuff boolean document
property, which I am now able to modify through VBA.

This is principally working fine. The problem is that, when in layout
mode and viewing two (or more) pages at the same time (even when viewing
but the bottom of page 1 and the top of page2...), word is ceaselessly
updating the graphics. This goes that far that the user is unable to do
much more than to scroll away from that particular view.

I should note that the autotext entries are absolutely (relative to
page) placed graphical elements (pictures, lines, boxes). This does not
happen, if I place just the autotext entries (without the IF). It also
doesn't happen if the autotext entries are positioned relative to text.

I'm using Word 2002 SP3

Am I doing something wrong here?

Thanks a lot!

Bernhard

Seems like I'm running up against Word when using {IF} in conjunction
with autotext elements that are NOT "in line" with the text... No chance
to get this working right.

What I do now is to use a bookmark with a single field in it, and set
the field to {AUTOTEXT ...} or to just {} programatically. This works
fine (until now).

Bernhard
 

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