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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

view doc file in coldfusion

Status
Not open for further replies.

alsjka

Technical User
Joined
Jan 21, 2003
Messages
114
Location
US
I have read through many responsed about viewing a .doc file in th coldfusion but no is it possible. So can someone explain to me is it possible to view a word doc or rtf file or txt in coldfusion?

 
You don't really view the doc files in cold fusion..

So specify..

. Are you wanting to link directly to the file, or hide the actual name of it?
. Are you trying to create the file?
. Are you trying to get the extension to be .cfm or the regular extension (.doc, .rtf, .txt)?

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
I am trying to display the contents of a word file at the end of a report i was thinking about creating but i just get back a bunch of jumbled characters. I can retrieve a txt file just fine. But anything else that a txt file does not display properly. I guess I do not understand the proper code to display this type of file. I do know you have to use 'cfcontent'.

Thank You

 
Are you trying to cfinclude the word file.. or use cffile to get it?

Neither of those will work for such files, you need cfcontent...


You cannot append a word file to a seperate type of file in this manner.. what you might consider is using frames, or what would slick is an IFRAME containing your word file..

You can make cfcontent trick the browser into thing your cfm page is a word file or many other types of files.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top