You are correct that was v5 code, but after your suggestion it still seemed to work, so Ill stick with it unless you suggest something better.
Next problem is merge fields in the header/footer not merging over. I again tried to use the code that you suggested from the other post (The version 5 code):
Q: ... SuperMerge component doesn't process merge fields in the header/footer - is it possible to fix this?
A: SuperMerge cannot process the fields but the destination WPRichText can. SImply assign an event handler to DestText.OnMailMergeGetText (this can be the same as used for TWPSuperMerge!) and call
DestText.MergeText(true) before you do the SuperMerge.Execute.
But that doesnt seem to work. What would I have to do for version 4 in order to make it work?
Also, when A user uses header/footer bands and saves the merged text, then reopens the text for editing, the header footer bands are replaced by the old header/footers. Any way to have it have the bands when the re-edit (for lcak of a better word)?
Thanks for your help.