Transfer .asp page to MS word include images within <IMG> tag

Discussion in 'ASP General' started by btfbg, Mar 8, 2005.

  1. btfbg

    btfbg Guest

    I am using
    Response.ContentType = "application/msword"
    Response.AddHeader "Content-Disposition",
    "attachment;filename=Letter.doc"
    to download my asp page to the client. The download process works
    great but when I open the .doc file it is missing the image included
    within the html <img> tag of the .asp page.
    How do I get the image to come down with the text?
    If someone could help me out it would be greatly appreciated.
    here is the image tag <IMG src="LargeLogo.jpeg" align=left>
     
    btfbg, Mar 8, 2005
    #1
    1. Advertising

  2. btfbg

    Adrienne Guest

    Gazing into my crystal ball I observed "btfbg"
    <> writing in news:1110315787.787770.86350
    @z14g2000cwz.googlegroups.com:

    > I am using
    > Response.ContentType = "application/msword"
    > Response.AddHeader "Content-Disposition",
    > "attachment;filename=Letter.doc"
    > to download my asp page to the client. The download process works
    > great but when I open the .doc file it is missing the image included
    > within the html <img> tag of the .asp page.
    > How do I get the image to come down with the text?
    > If someone could help me out it would be greatly appreciated.
    > here is the image tag <IMG src="LargeLogo.jpeg" align=left>
    >
    >


    Is the image embedded in the Word doc, or is the image only in the ASP
    page?

    --
    Adrienne Boswell
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
     
    Adrienne, Mar 8, 2005
    #2
    1. Advertising

  3. btfbg

    btfbg Guest

    The image is within the ASP page. The word document is not created
    until the
    Response.ContentType = "application/msword"
    Response.AddHeader "Content-Disposition",
    "attachment;filename=Letter.do­c"
    is called.
     
    btfbg, Mar 9, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.austin.rr.com

    how to download img from html img tag

    news.austin.rr.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    512
    Steve C. Orr [MVP, MCSD]
    Apr 27, 2005
  2. shruds
    Replies:
    1
    Views:
    825
    John C. Bollinger
    Jan 27, 2006
  3. mark4asp
    Replies:
    2
    Views:
    2,217
    Harry Haller
    Nov 7, 2006
  4. btfbg
    Replies:
    0
    Views:
    114
    btfbg
    Mar 15, 2005
  5. Replies:
    1
    Views:
    364
    David Dorward
    Mar 24, 2005
Loading...

Share This Page