What I did was this, I did a replace on the html when I created it, then
moved the pictures to a directory that the web refrences. That fixed my
problem, if you don't do that what will happen is word automatically creates
images that are number, say 10 images then they will be 1 - 10.png (word
2000) so if you have 2 documents with 10 images, the second one will
overwrite the first one. So you have to make directories to seperate the
different documents to boot. It works though.

Robert Everland III
Dixon Ticonderoga
Web Developer Extraordinaire

-----Original Message-----
From: David Green [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 4:40 PM
To: CF-Talk
Subject: MS word HTML page with a picture


Hello list,  Thanks all for the good material on this list!

I am not sure how to ask this question.

Is there a way to control the relative calling directory information 
when using cfinclude?  "I know questions does not make sense"

My problem is am including pages that are created in word and saved to 
HTML then uploaded by a user to a user defined directory structure on 
the server.  I then use cfdirectory and cfinclude to make pages with 
links and display the pages with footers and back grounds ect.   This 
all works great for pages without a pictures user is able to build and 
control there site with just word and some file management.   Till they 
add a picture to the document created in word

A page created/saved by MS word as HTML that  includes a picture looks 
for a sub directory of (WebPageName_files) in the directory that the MS 
word page is in.    My problem is that because am using cfinclude I am 
not in the directory that the MS word page is in so my relative 
directory path is not what was created by the word when the document was 
saved.   

The path to the image in the document created word will be something 
like "./tour/testpage_files/picture.jpg"  but because of the cfinclude 
am not in the directory with a subdirectory of tour.  Am in the 
directory with my cfm pages (/webname/cf_pages ) and the page is looking 
here for the subdirectory of tour and the path to the image.   

Editing the path in the word after saving it html document is not an 
option.    My user would not a clue on how to edit the code.

So my question has anybody done something like this using word and 
cfinclude and how did you handle the file paths created by word?    

I am guessing some how I need to create a web page dynamically in the 
directory that the word doc is in and call it directly with maybe
a cflocation or java script?

Thanks the any help,  Sorry if this makes no sense.
David




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to