To get the file into the db

   you can upload with cffile or copy/paste into a form.

   store the document, "as-is", in a text field (SQL Server).

To display the field, first change all occurrences of

     <

    to

     &lt;

A simple regexp can be used for the above

   <cfset pseudoHTML = ReReplace(myDB.HTML, "<", "&lt;", "ALL">

Then you can display pseudoHTML in a textarea.

Reverse the process to store updated text into the db

HTH

Dick

At 9:55 AM -0700 4/2/01, <[EMAIL PROTECTED]> wrote:
>From: Chad McCue
>To: [EMAIL PROTECTED]
>Sent: Monday, April 02, 2001 9:43 AM
>Subject: Get html code from word document.
>
>
>Hello all,
>         My problem might not be able to be done with cold fusion but 
>any ideas would be helpful. I am trying to allow my users to add a 
>word document saved as a html file to my database. Then in my 
>backend I need to open that saved document into a textbox with the 
>html code being displayed so it can be changed and updated. Any 
>suggestions would be helpful. Thanks
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to