Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

microsoft word with image, image not showing..

Status
Not open for further replies.

pixiesfb

Programmer
Apr 27, 2001
62
US
I'm using the cfcontent to create a Word doc.

The document comes up fine, but where there should be an image, instead there is a message:

"The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location"

I'm using https so the site is not publicly available. I suspect this is part of the issue.

The same problem that is addressed in this thread:
They claim to have solved the problem, but it seems they only had a theory about storing images at the root or something, but they never say if it actually worked. (I tried putting the image in the root and it did not work.)

Here is my code:

<html>
<head>

<cfheader name="Content-Disposition" value="test.doc">

<cfcontent type="application/msword">

</head>
<body>

Here is some text and an image:
<br>
<img src="../../IMGS/test.jpg">

</body>
</html>

(I also tried using an absolute path for the image but there was no difference)
 
I know PDF has the same problem. We work within an intranet so our solution was to do something like <img src = "file://machineName/path/goes/here/test.jpg"> to get away from using https.

HTH.

Vegans are friends, not food...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top