Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
ralph_noble@hotmail.com #1
Letter Generator
I have a standard letter template that I want employees to use. I want them to
fill in some forms on a page and click a button to generate the letter, but
commit what they entered in the form to an MS Access database. Does anyone have
an example of such they'd be willing to share to help me get started? Thanks.
Ralph Noble
[email]ralph_noble@hotmail.com[/email]
ralph_noble@hotmail.com Guest
-
Changing from half letter to letter document size
I have a document that was created in the size it will be (5.5" x 8.8") and it will be punched on the spine side. It has a slightly larger margin on... -
Missing letter, letter replaced
I have save to postscript format from Indesign CS2 before distilling to pdf format. My platform is Max OS X, 384 MB ram. Issue: When I distill... -
Capital letter to small letter in Flash MX
Hi there I am doing a search tool in Flash MX and using a .xml as the archive containing the text At the moment I am using "indexof" as the... -
letter by letter text display
My friend had an idea for a site, where he wanted text to be typed out letter by letter in a movie. Not inputed by the user, but displayed by the... -
Parser generator
This is a multi-part message in MIME format. ------=_NextPart_000_0054_01C35555.A871D780 Content-Type: text/plain; charset="iso-8859-1"... -
cf_menace #2
Re: Letter Generator
1. Create the form and store the data as you normally would.
2. Save the letter as an "RTF" file, not a normal Word ".doc" file.
3. Intead of the MS-Word mailmerge fields, set placeholders throughout the
letter: %firstName%.
4. Use <cffile> to read the RTF template and assign it to a variable "rtfData"
5. Run a query to get the data you stored in step 1.
6. Run multiple ReReplace() functions to repalce the placeholders with the
query data:
<cfset ReReplace(rtfData, "%firstName%", query.firstName, "ALL")>
<cfset ReReplace(rtfData, "%lastName%", query.lastName, "ALL")>
etc.
7. Use <cffile> to save the populated rtfData to a new file to the server.
OR
Use <cfcontent> to present the populated rtfData as an RTF document that
doesn't get saved to the server.
Clear as mud? :D
cf_menace Guest
-
Esterz #3
Re: Letter Generator
I am trying to do as you have told, but I don't know how to save rtfData to a new .rtf file on the server. Can you help me please?
Esterz Guest
-
Stressed_Simon #4
Re: Letter Generator
Create the document in word, then do save as and choose Rich Text Fromat instead of a Word Document!
Stressed_Simon Guest
-
Esterz #5
Re: Letter Generator
Jajajaja, Stressed_Simon, I KNOW how to make and .rtf document from a .doc.
What I am asking is, when I have done the REReplace of the placeholders, I want
to save the rtfData information in a file (using cffile) with .rtf format,
because I want to send it attached in a mail.
My question is: is possible to "write", a "new file" (not overwrite the
existent template) in .rtf format (instead of the .txt format) in a dyrectory
of my server?
Thank you a lot for trying to answer me.
Esterz Guest
-
Stressed_Simon #6
Re: Letter Generator
Yes of course just save it with a .rtf extension.
Stressed_Simon Guest



Reply With Quote

