A CF application I'm building needs a feature that will create documents
using a form letter and data from a database, merging the form and the
data similar to a MailMerge operation. The only way I've been able to
get any results is by using cffile to read the form, then cfset ThisLtr
= Evaluate(formLtr), then use cfoutput and pre to output the result.
Constructing the form letter is a royal PITA because you have to asci
encode everything like this:

#Ownername#  & #chr(13)# & #chr(10)# &
#Attnline# & #chr(13)# & #chr(10)# &
#Addrline# & #chr(13)# & #chr(10)# &
#trim(CityState)# & " " & #ZipCode#

And doing it that way, I can't get any cf conditional logic to work,
such as a cfif statement to not use the line for the Attnline if it's
blank.

Any suggestions for a better approach?

This message has been scanned by the City of Renton's filtering gateway.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to