This project has moved. For the latest updates, please go here.

problem of AddHeaders() - cannot add more than once and cannot remove the header

Dec 3, 2010 at 8:58 AM

I also found a strange problem. When there  is a previously added header or footer in the loaded file, the line of document.AddHeaders() will result in an error of "sequence contains more than one element" and I cannot find code in the class to remove the header too. Actually, my aim is to ensure that there must be no header and footer created by the users in advance so that I can add a new header template with a reference no. to the header. Thanks for checking this error.