Wild flickering when using Conditional AutoText images in footer

S

src

Hi folks,

I adapted Greg Maxey's Conditional Headers and Footers (http://
gregmaxey.mvps.org/Conditional_Headers_Footers.htm) so I could use 3
different company logos in the footer of our letterhead (company was
bought twice in last 2 years, and contractually we still need to show
old company names and logos on some documents).

Basically, I created 3 Autotext entries with each logo as a gif. I
then have a userform that lets the user check one of three company
names. The conditional AutoText checks against the value of a Custom
Document Property that chooses the AutoText graphic.

Using the logic below, no matter which company I start with, the true
statement of the first IF (LogoABC below) causes the graphic (and
cursor) to flicker. It seems to be evaluating the statement as it
checks the grammar of each page (little book with pencil at the bottom
of the screen is updating) and gets into a loop of updating the
graphic, check grammar, lather rinse and repeat.

Field code:

{ AUTOTEXT
{ IF { DocProperty "Company" } = { DocProperty "CoABC" }
LogoABC

{ IF { DocProperty "Company" } = { DocProperty "CoEFG" }
LogoEFG
LogoXYZ
}
}
}

Interestingly, it only flickers when more than 1 page is visible on
the screen, and it only flickers in the footer (same code in the body
is immune).

Does anyone know why this is happening? Can you duplicate the issue?

THANKS
 
M

macropod

Hi SRC,

I don't know if this will affect the flickering, but it seems to me you can simply use an IF test in the header/footer (without the
AUTOTEXT field) to examine the contents of the 'Company' DOCPROPERTY field, using code like:
{IF{DocProperty "Company"}= "CoABC" LogoABC {IF{DocProperty "Company"}= "CoEFG" LogoEFG LogoXYZ}}
where your UserForm populates that 'Company' DOCPROPERTY variable with "CoABC", "CoEFG", or something else.
 
T

Tony Jollans

Flickering in headers and footers can be caused by having tables and other
objects (pictures, for example) jostling for the same bit of space. If you
also have a table in your footer, try adjusting the position of the logo -
or the table - slightly to see if it makes a difference.
 

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