I have a contract in Microsoft Word format. There are terms in the contract
which need to be variables (name, address, etc etc). The file needs to be
updated by technically challenged users and still be able to output to
people signing the contract on line.

The way I'm currently doing it is to save the .doc file as an Rich Text
Format Document, which makes it all ascii, then use cffile to write out
another .rtf file. The trouble is, it's wicked unwieldy. Here's the first
couple of lines of the cffile tag. It works, but sheesh... Any ideas?

Greg Creedon
Developer - Available now in NYC!

<CFFILE ACTION="Write"
    FILE="d:\icp\documents\#newfilename#"
    OUTPUT="{\rtf1\ansi\ansicpg1252\uc1
\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\pano
se 02020603050405020304}Times New
Roman;}{\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier
New;}
{\f23\froman\fcharset128\fprq1{\*\panose 00000000000000000000}MS
Mincho{\*\falt MS ??};}{\f28\froman\fcharset128\fprq1{\*\panose
00000000000000000000}@MS Mincho;}{\f29\fswiss\fcharset0\fprq2{\*\panose
020b0604030504040204}Verdana;}
{\f34\froman\fcharset238\fprq2 Times New Roman
CE;}{\f35\froman\fcharset204\fprq2 Times
           ............ (about 70K of stuff deleted) ...........
\par \hich\af29\dbch\af23\loch\f29 Contract #session.contract_id#
\par }}">





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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