Re: setting header/footer in word from ASP page

From: Carolyn Speakman (CarolynSpeakman_at_discussions.microsoft.com)
Date: 11/09/04

  • Next message: mef526: "Re: MSWord9.OLB comaptibility with MS Word 2003"
    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
    > :-)
    >
    >


  • Next message: mef526: "Re: MSWord9.OLB comaptibility with MS Word 2003"

    Relevant Pages

    • Re: Web page & headers
      ... HTML, to my knowledge, does not have a header feature. ... Anne Troy ... I see the headers in the .doc file but not ...
      (microsoft.public.word.pagelayout)
    • Re: Grey logos in letterheads
      ... If you really need the rationalisation, it is/was this: ... from which both HTML and XML protocols sprang: ... header and leaving it up to the recipient device to figure it out. ...
      (microsoft.public.mac.office.word)
    • Re: Grey logos in letterheads
      ... small comment--actually, both of my points came about because people constantly post about both those problems on the general Word groups, not here. ... I was trying to write an explanation to defend the lost headers in HTML to someone over there when I realized there was no way I could rationalize it. ... user can edit it and it can have a running header on each page. ...
      (microsoft.public.mac.office.word)
    • Re: Diacritical marks in array dont translate
      ... >>> encoding you specified in your HTML. ... > header transmitted by a server. ... MUST or MAY allow the Content-Type header to be overridden by the `meta' ... There are used UAs out there which does not support Unicode, ...
      (comp.lang.javascript)
    • Re: Unable to Control Header in html mail
      ... The dialog is correct - you can't preview HTML. ... If I'm following correctly, the header and footers are behaving as expected, ... Teach Yourself Outlook 2003 in 24 Hours ... > page setup all the header and footer areas are blank. ...
      (microsoft.public.outlook.printing)