Copy header and footer with images

Jun 2, 2014 at 7:18 AM
is there any way how to correctly copy header and footer from one file to another? If I use
toDocument.Headers.odd = fromDocument.Headers.odd;
then the header is copied, but if there is an image in the copied header then instead of correct image there is image object with text in it: "This image cannot currently be displayed".

I found similar problem in this thread: but it's without solution.