Hello,

Coming in late on this thread perhaps, so forgive me if I missed anything.

What I do with RTF (or any text-based markup language) is simply create the template 
(eg. in Word).  Escape and # marks in the template.  Then stick CF variable calls 
right in the template where they should go (pound signs and everything).  Then, when I 
need to return the final formatted RTF file, I simply CFINCLUDE it into the processing 
CF template, and use CFCONTENT to return the final RTF doc.  This is similar to the 
method Hassan outlines, but you don't need to write any substitution code (I do this 
with an RTF form containing over 100 fields, so this method was much easier and 
faster).

For debugging the RTF template (pound sign errors or whatever), simply have the 
delivery CF template return a type of text/plain so you can see the raw output and any 
errors.

The only issue I've seen is where Word will put a line break in the middle of your CF 
variable (between the # marks).  This was easy to find when debugging, and simply 
going into Notepad and removing the line break fixes the problem.

The point of all this is that if you have any plain text file format, you can always 
simply CFINCLUDE it and process any and all CF commands found.

Hope that helps,
-Max

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to