dynamically add header / footer to a word doc generated by asp

J

Jay

How to add a header ( text and an image) and footer with page numbers to a
word doc that is generated by an asp page( word doc is generated by using
mime type= application/msword NOT by word automation.)

Many thanks,
JG
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?SmF5?=,
How to add a header ( text and an image) and footer with page numbers to a
word doc that is generated by an asp page( word doc is generated by using
mime type= application/msword NOT by word automation.)
If you're not using Word automation then I don't think there's any way you
can add a header footer. Note that I don't know what options are available
when using the "mime type". If that will allow you to use command line
switches to open a new document based on a specific template, and then drops
the text into that, then you could put the header/footer into that template.
But that's the only possibility I can imagine.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
J

Jay

Well,
What I tried is:
I manually attached the header and footer to the generated word doc and
saved it as a web page.It created a directory and an xml file and header html
file.
I copied the stylesheet from these files to my asp file.
But this is not consistent ; some times the headr & footer are displayed and
some times not?? Any thoughts??
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?SmF5?=,
Well,
What I tried is:
I manually attached the header and footer to the generated word doc and
saved it as a web page.It created a directory and an xml file and header html
file.
I copied the stylesheet from these files to my asp file.
But this is not consistent ; some times the headr & footer are displayed and
some times not?? Any thoughts??
Not really, no. HTML-format is not my specialty, nor one of Word's strengths.
There's a word.webauthoring group where you might find people who know more
about how it works. All I can say is that the document would have to be able to
find the header html file, so that perhaps there's a problem with it finding
that link. Have you tried opening the Word document and searching for the link
to the external header file?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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