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