Exporting to Word using ASP - Need linked images to be embedded im

Discussion in 'ASP General' started by unotin, Jun 14, 2005.

  1. unotin

    unotin Guest

    I have an application in ASP that exports to Word using the
    Response.ContentType method.

    The application references another ASP page through the img tag that uses a
    Response.BinaryWrite (of an img content type) for its output.

    In other words:

    App A.ASP contains the code: [...] <%Response.ContentType =
    "application/vnd-msword"%> [...] <img src="B.ASP">

    Then B.ASP contains the code: [...] <%Response.ContentType = "image/png"%>
    [...] <%Response.BinaryWrite BinaryObject%> [...]

    When Word opens and the document is saved, it references the images as
    links. I need to have these images be embedded as the file will need to be
    emailed outside of the network.

    I can go in and manually break the links and save them as embedded files,
    but this process needs to be automated as users will not know how to do this.

    Is there a way to force these images to be embedded instead of referenced as
    links when the Word doc is intially created?

    Any help would be greatly appreciated.
     
    unotin, Jun 14, 2005
    #1
    1. Advertising

  2. unotin

    Guest

    unotin wrote:
    > I have an application in ASP that exports to Word using the
    > Response.ContentType method.
    >
    > The application references another ASP page through the img tag that uses a
    > Response.BinaryWrite (of an img content type) for its output.
    >


    What I do is create a simple word doc with an image, save as XML, and
    check out the results. An image is a w:bindata tag.

    See

    http://www.antennahouse.com/product/axfo30/wordmltransform.htm

    Scroll about half way down.
     
    , Jun 15, 2005
    #2
    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. =?Utf-8?B?UHJhbmF2?=

    Exporting Images to Excel/Word

    =?Utf-8?B?UHJhbmF2?=, Apr 8, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    562
    =?Utf-8?B?UHJhbmF2?=
    Apr 8, 2004
  2. Vimal
    Replies:
    0
    Views:
    503
    Vimal
    Oct 14, 2004
  3. peteyjr
    Replies:
    1
    Views:
    652
    MWells
    Jan 19, 2005
  4. Kevin Crosbie
    Replies:
    2
    Views:
    358
    Kevin Crosbie
    Apr 25, 2005
  5. Sagar
    Replies:
    0
    Views:
    95
    Sagar
    Jan 18, 2006
Loading...

Share This Page