By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,900 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,900 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


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/...ltransform.htm

Scroll about half way down.

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.