I have an application which, after doing the database insert, prepares a
microsoft rich text format document to send to the user and to be filed.
Using cffile, I'm able to read in my template document as a variable and
write it back out again.
<cffile action="READ" file="h:\contracts\template.rtf" variable="contract">
<CFFILE ACTION="Write"
FILE="h:\contracts\documents\#newfilename#"
OUTPUT="#contract#">
This works fine as advertised to a point... the variables aren't being
processed. If I take the text of the rtf template and physically place the
rtf within the cffile write tag, the variables are processed:
<CFFILE ACTION="Write"
FILE="h:\contracts\documents\#newfilename#"
OUTPUT="{\rtf1\ansi\ansicpg1252\uc1
\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\pano
se 02020603050405020304}Times New Roman;}{\f28\froman\fcharset238\fprq2
Times New Roman CE;}{\f29\froman\fcharset204\fprq2 Times New Roman
Cyr;}[etc... ommitted for brevity!]{\line This Network Affiliate
Subscription Agreement ( ”Agreement ”), effective as of
#effective_date#( ”Effective Date
”), is between etc etc
any ideas?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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