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

U

unotin

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.
 
L

larrybud2002

unotin said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top