C
Chris J
I am having difficulty with automated insertion of watermarks (eg
diagonal DRAFT) from Autotext. The theory seems to be that, by
inserting these in the header, each page of the document will be
watermarked. But this is not working in practice - I either get the
watermark on only some of the pages, or twice on one page
(superimposed) and not elsewhere.
A typical document where the problem arises is laid out as follows:
- Section break between sections 1 and 2 is on page 1 and continuous
(section 1 first page header contains a letterheading), section 1
primary header not visible because section 1 ends on page 1)
- Section 2 primary header is linked to previous (though behaviour
seems unchanged if I unlink it instead); section 2 doesn't have a
separate first page header, but if it did then presumably this too
would not be visible because first page of section 2 also contains
section 1. Section 2 continues to end of document (assume a 4-page
letter).
The essence of the code I am using (in English rather than VBA) says:
- go to section 2
- if there's a different first page header, go to the first page
header of section 2 and insert the autotext (but this is set to be
skipped for a document configured as described above)
- go to the primary header (here still in section 2) and insert the
autotext
If I leave it at that, I get the watermark only on page 1. (If I
don't set it to skip the stage mentioned, I get the watermark imposed
twice on page 1, and still not elsewhere.)
So I added further lines to say go to page 2 (still with section 2
primary header open) and insert the autotext. That gets the autotext
onto page 2 but not pages 3 and 4. If I extend the code to say repeat
for pages 3 and 4 (which should be irrelevant because they are in
section 2 just as page 2 is), the cursor returns (at the Go To line)
to a frame on page 1 (anchored in section 1), and the
autotext/watermark is then superimposed on the page 1 watermark
(actually rather untidily - one impression is not an exact
superimposition). Nothing happens on page 3 or page 4.
Can anyone explain what's going wrong here please? I could post the
extract of code if needed but I thought it would be easier to explain
as above in the first place.
Thanks
Chris J
diagonal DRAFT) from Autotext. The theory seems to be that, by
inserting these in the header, each page of the document will be
watermarked. But this is not working in practice - I either get the
watermark on only some of the pages, or twice on one page
(superimposed) and not elsewhere.
A typical document where the problem arises is laid out as follows:
- Section break between sections 1 and 2 is on page 1 and continuous
(section 1 first page header contains a letterheading), section 1
primary header not visible because section 1 ends on page 1)
- Section 2 primary header is linked to previous (though behaviour
seems unchanged if I unlink it instead); section 2 doesn't have a
separate first page header, but if it did then presumably this too
would not be visible because first page of section 2 also contains
section 1. Section 2 continues to end of document (assume a 4-page
letter).
The essence of the code I am using (in English rather than VBA) says:
- go to section 2
- if there's a different first page header, go to the first page
header of section 2 and insert the autotext (but this is set to be
skipped for a document configured as described above)
- go to the primary header (here still in section 2) and insert the
autotext
If I leave it at that, I get the watermark only on page 1. (If I
don't set it to skip the stage mentioned, I get the watermark imposed
twice on page 1, and still not elsewhere.)
So I added further lines to say go to page 2 (still with section 2
primary header open) and insert the autotext. That gets the autotext
onto page 2 but not pages 3 and 4. If I extend the code to say repeat
for pages 3 and 4 (which should be irrelevant because they are in
section 2 just as page 2 is), the cursor returns (at the Go To line)
to a frame on page 1 (anchored in section 1), and the
autotext/watermark is then superimposed on the page 1 watermark
(actually rather untidily - one impression is not an exact
superimposition). Nothing happens on page 3 or page 4.
Can anyone explain what's going wrong here please? I could post the
extract of code if needed but I thought it would be easier to explain
as above in the first place.
Thanks
Chris J