Question about template

D

David

Hi all,

I've tried to attach my custom template to the existing document. My purpose
is to apply the the header and footer of my custom template in my existing
document.

I use

"document.set_AttachedTemplate(ref o);"

to attach my custom template to the existing document but it seems doesn't
work. Is anyone know how to do it?

Thanks
 
J

Jezebel

Attaching a template does not touch the content of the document, only the
styles. If you need to re-do the headers and footers, you need to create a
new document from the template, then copy the content from the old.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top