Hi,
I am using the WPSuperMerge component to create merged letters.
The problem is that WPSuperMerge ignores normal headers and footers in the template document. I know that the correct way of doing this is to create a Header Band in the template, but I have hidden the band functionality from my users in order to make it as simple as possible for them.
When the merge button is clicked, my code does this :-
[1] backup their template letter (to a memstream)
[2] creates a group band around their letter
[3] inserts a page break at the end of the group
[4] opens a new document and calls WPSuperMerge.Execute
[5] restores their original letter
This all works perfectly apart from the headers/footers.
A possible work around would be for me to create a header band and a footer band in code, and then copy the template's header / footer into the correct bands, but I can't work out how to do this!
Please help!
Thanks,
Hedley
PS : Hope you had a good holiday, but I'm glad you're back!