Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Page Layout / March 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jay - 29 Mar 2005 23:19 GMT
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
Cindy M  -WordMVP- - 30 Mar 2005 11:34 GMT
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 :-)
Jay - 30 Mar 2005 15:23 GMT
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??

> Hi =?Utf-8?B?SmF5?=,
>
[quoted text clipped - 16 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M  -WordMVP- - 31 Mar 2005 17:29 GMT
Hi =?Utf-8?B?SmF5?=,

> Well,
> What I tried is:
[quoted text clipped - 4 lines]
> 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 :-)

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.