Re: setting header/footer in word from ASP page
From: Carolyn Speakman (CarolynSpeakman_at_discussions.microsoft.com)
Date: 11/09/04
- Previous message: Jason: "RE: FrontPage Addin Startup problem"
- In reply to: Cindy M -WordMVP-: "Re: setting header/footer in word from ASP page"
- Next in thread: Cindy M -WordMVP-: "Re: setting header/footer in word from ASP page"
- Reply: Cindy M -WordMVP-: "Re: setting header/footer in word from ASP page"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 09:08:04 -0800
That's been a great help, but I have another question.
I'm automatically making the user save the .doc file, instead of viewing it
in the web browser using VBScript:
<%
Response.AddHeader "Content-Disposition", "attachment;
filename=ClientReport.doc"
%>
However, after doing as you advised below, the header information is saved
in a separate file, which is not downloaded with the .doc file or even if the
file is shown in the browser as an .asp page and then saved.
Do you know how I can get the header page saved on the user's machine as well?
Thanks,
Carolyn
"Cindy M -WordMVP-" wrote:
> Hi =?Utf-8?B?Q2Fyb2x5biBTcGVha21hbg==?=,
>
> > is it possible to set the header and
> > footer on the word document being created?
> >
> Yes, it's possible, but the HTML code you'd need to write
> would be much more complex than what the article shows. Go
> into Word and create a very simple document ("Hello World"
> in the body), with the header and footer you want. Now save
> this as a web page (*.htm) and look at the result in a text
> editor. You'll see Word's round-trip HTML. Most of the
> stuff at the beginning (style lists, properties, etc.) you
> won't need (same as you don't need it in the KB article
> sample). But look carefully at how the header/footer
> information is structured. Do some experimenting to find
> out what/how much you can delete from this HTML file, and
> still have Word open and display it successfully. When
> you've narrowed it down, you know what your code has to
> generate.
>
> 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
> :-)
>
>
- Previous message: Jason: "RE: FrontPage Addin Startup problem"
- In reply to: Cindy M -WordMVP-: "Re: setting header/footer in word from ASP page"
- Next in thread: Cindy M -WordMVP-: "Re: setting header/footer in word from ASP page"
- Reply: Cindy M -WordMVP-: "Re: setting header/footer in word from ASP page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|