ASP detail page to Word Document (ASP/VBScript)

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default ASP detail page to Word Document (ASP/VBScript)

    Hi there.

    I have a dynamic details page that I want to output into a word document.
    Can anyone pint me in the right direction for some sample scripts or
    tutorials on how to get this working. It is a controlled envoriment running
    IIS/MSOffice/IE.

    Regards

    James Brown


    James Brown Guest

  2. Similar Questions and Discussions

    1. Go to next from detail page
      Hi I have a detail page that comes off a search results page and I want to be able to link to the next record in the results list. Does anyone...
    2. Can I open a page as a popup using GOTO DETAIL PAGE
      ok, i have posted this before but i didnt get any response. I have failed to find an answer anywhere else. I want to open a GOTO DETAIL page...
    3. Characters overlapping in pdf document created from a Word document
      We are using Adobe Acrobat 6.0, Word and Excel 2002 and Windows 2000. We create a portion of a document in Word and a portion in Excel. Then we print...
    4. Go to Detail page
      Can anyone tell me the best and easiest way to pass URL parameters when clicking on a forms submit button. If I use the "Go to Detail Page"...
    5. Need to access a WORD document via ASP page
      Does anyone know how to access a WORD document using ASP? I have a few users that fill in fields in a WORD document and I need to be able to open...
  3. #2

    Default Re: ASP detail page to Word Document (ASP/VBScript)

    Just add the following 2 lines in the <body> section of your page:

    Response.ContentType = "application/msword"
    Response.AddHeader "Content-Disposition",
    "attachment;filename=MyDocument.doc"

    You will then see a dialog window coming up, asking you if you want to
    open or save the "MyDocument.doc" Word document... Open it, and you have
    your page in Word in front of you...

    It's magic (courtesy MS, for once), and it works beautifully...

    Of course, you can add some control to the process after that, with some
    question to the user before doing the output to Word.

    Bernard

    James Brown wrote:
    > Hi there.
    >
    > I have a dynamic details page that I want to output into a word document.
    > Can anyone pint me in the right direction for some sample scripts or
    > tutorials on how to get this working. It is a controlled envoriment running
    > IIS/MSOffice/IE.
    >
    > Regards
    >
    > James Brown
    >
    >
    bthouin Guest

  4. #3

    Default Re: ASP detail page to Word Document (ASP/VBScript)

    WOW Bernard, this is Magic! just what I wanted. Thank you very much!

    James :):):)


    "bthouin" <bernard_thouin@bluewin.ch> wrote in message
    news:d1emkl$kdj$1@forums.macromedia.com...
    > Just add the following 2 lines in the <body> section of your page:
    >
    > Response.ContentType = "application/msword"
    > Response.AddHeader "Content-Disposition",
    > "attachment;filename=MyDocument.doc"
    >
    > You will then see a dialog window coming up, asking you if you want to
    > open or save the "MyDocument.doc" Word document... Open it, and you have
    > your page in Word in front of you...
    >
    > It's magic (courtesy MS, for once), and it works beautifully...
    >
    > Of course, you can add some control to the process after that, with some
    > question to the user before doing the output to Word.
    >
    > Bernard
    >
    > James Brown wrote:
    > > Hi there.
    > >
    > > I have a dynamic details page that I want to output into a word
    document.
    > > Can anyone pint me in the right direction for some sample scripts or
    > > tutorials on how to get this working. It is a controlled envoriment
    running
    > > IIS/MSOffice/IE.
    > >
    > > Regards
    > >
    > > James Brown
    > >
    > >

    James Brown Guest

  5. #4

    Default Re: ASP detail page to Word Document (ASP/VBScript)

    You're welcome...

    James Brown wrote:
    > WOW Bernard, this is Magic! just what I wanted. Thank you very much!
    >
    > James :):):)
    >
    >
    > "bthouin" <bernard_thouin@bluewin.ch> wrote in message
    > news:d1emkl$kdj$1@forums.macromedia.com...
    >
    >>Just add the following 2 lines in the <body> section of your page:
    >>
    >>Response.ContentType = "application/msword"
    >>Response.AddHeader "Content-Disposition",
    >>"attachment;filename=MyDocument.doc"
    >>
    >>You will then see a dialog window coming up, asking you if you want to
    >>open or save the "MyDocument.doc" Word document... Open it, and you have
    >>your page in Word in front of you...
    >>
    >>It's magic (courtesy MS, for once), and it works beautifully...
    >>
    >>Of course, you can add some control to the process after that, with some
    >>question to the user before doing the output to Word.
    >>
    >>Bernard
    >>
    >>James Brown wrote:
    >>
    >>>Hi there.
    >>>
    >>>I have a dynamic details page that I want to output into a word
    >
    > document.
    >
    >>>Can anyone pint me in the right direction for some sample scripts or
    >>>tutorials on how to get this working. It is a controlled envoriment
    >
    > running
    >
    >>>IIS/MSOffice/IE.
    >>>
    >>>Regards
    >>>
    >>>James Brown
    >>>
    >>>
    >
    >
    >
    bthouin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139