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
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