Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. Parser generator
      This is a multi-part message in MIME format. ------=_NextPart_000_0054_01C35555.A871D780 Content-Type: text/plain; charset="iso-8859-1"...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default Re: Letter Generator

    Yes of course just save it with a .rtf extension.
    Stressed_Simon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139