K
kaldvelski
Hi folks,
I'm using the ViewHeader routine to check that a user doesn't mess with
my headers and footers. If they don't match what I want them to be I'm
changing the content back. Part of my header is an image (shape) that
basically serves as a watermark.
The problem is that by adding a shape into the header triggers the
ViewHeader routine so my code ends up in an infinite loop which can
crash word. So not good.
Adding the image as an inline shapes seem to get past the infinite loop
problem but then I can't convert use the ConvertToShape function
without
either triggering ViewHeader again or it just failing (I believe
because
I've closed the HeaderFooter edit pane).
I've even tried inserting the image into the main body of the document,
then cut and pasting it into the header but that still fires the
ViewHeader method.
Any other suggestions how I might go about doing this?
TIA
Craig
I'm using the ViewHeader routine to check that a user doesn't mess with
my headers and footers. If they don't match what I want them to be I'm
changing the content back. Part of my header is an image (shape) that
basically serves as a watermark.
The problem is that by adding a shape into the header triggers the
ViewHeader routine so my code ends up in an infinite loop which can
crash word. So not good.
Adding the image as an inline shapes seem to get past the infinite loop
problem but then I can't convert use the ConvertToShape function
without
either triggering ViewHeader again or it just failing (I believe
because
I've closed the HeaderFooter edit pane).
I've even tried inserting the image into the main body of the document,
then cut and pasting it into the header but that still fires the
ViewHeader method.
Any other suggestions how I might go about doing this?
TIA
Craig