I was running into the same issue as above, however, I was fortunate
enough to workaround it using the method below. This may or may not work
depending on your requirements for the header/footer but thought I would
share. 97% of what I was sending in...