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

is it possible to show a document and change it in the Web Server???

Status
Not open for further replies.

colosoderada

Programmer
Sep 14, 2000
26
ES
I want for instance show a document word when I open a Web page fron the server, I will work with this document and
later I want to save this document in the server.

is it possible do this ????? or Maybe I must download the
document in my local computer work with the document and
later send it by e-mail to the server.

I want to use this via Internet, for example to development
a on-line course.

Any ideas ????
Thank in advance.
 
COM is the answer. Check out for some great tutorials and how-to's. Make sure you have Word installed on your server. Good luck!


<webguru>iqof188</webguru>
 
You can use CFFILE in order to grab the file contents from the server, place that content in a text area, edit the text, and then have the template update the content as a text file, again using CFFILE. The downside to this is that in terms of formatting, there isn't preservation of things like bold, italic, underlining, or even paragraphs. That is why I would recommend downloading the file off of the server (no ColdFusion required for that). Allow people to edit the file locally, and then create a template using CFFILE upload, that rewrites the file on the server. The action page for something like that would look like:

[tt]<CFFILE ACTION=&quot;Upload&quot;
FILEFIELD=&quot;File&quot;
DESTINATION=&quot;c:\whatever_the_complete_path_on_your_server_is&quot;
NAMECONFLICT=&quot;whatever_file_types_you_want_to_accept&quot;
ACCEPT=&quot;file_extension&quot;>[/tt]

The form would be a simple page with with a textfield named File that would post to the template with the code above.



Ryan ;-]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top