Professional Web Applications Themes

Generate multiple word doents at same time? - Coldfusion - Advanced Techniques

Hello, I current have the output of a query displayed as a word doent using cfcontent. I would now like to loop over that query and have multiple word doents generated at the same time, each with a different file name. I added a CFLOOP QUERY="" around the content query and the <cfcontent type="application/vnd.ms-word"> but that doesn't appear to be working. It seems like it is using the filename for the first loop but displaying the results of the final loop. Is it just not possible to have multiple results display because I'm launching each result set as a word ...

  1. #1

    Default Generate multiple word doents at same time?

    Hello, I current have the output of a query displayed as a word doent using
    cfcontent. I would now like to loop over that query and have multiple word
    doents generated at the same time, each with a different file name. I added
    a CFLOOP QUERY="" around the content query and the <cfcontent
    type="application/vnd.ms-word"> but that doesn't appear to be working. It
    seems like it is using the filename for the first loop but displaying the
    results of the final loop. Is it just not possible to have multiple results
    display because I'm launching each result set as a word doent? TIA,

    Kiyomi

    kiyomi Guest

  2. #2

    Default Re: Generate multiple word doents at same time?

    Without seeing your code I can only guess, but it sounds like you might not
    have the <cfcontent> tag inside the loop. If you loop thru the query as an
    output function you would have to assign a unique name to the word doc for each
    pass, or it will replace it each time.
    Such as:

    <cfcontent type="application/vnd.ms-word" name="#someUniqueValue#>

    Where #someUniqueValue# is maybe the primary key, or some other value from the
    dataset you are querying.

    bigbrain28 Guest

  3. #3

    Default Re: Generate multiple word doents at same time?

    Cfloop is around the cfcontent type. If I display the results as a regular
    html page instead of trying to launch as a word doent, everything displays
    correctly. I had it output the filename for each loop and it is unique each
    time.

    If I toss in a cfbreak to break the loop after the first pass, it launches the
    word doent with the correct filename and content. So it appears to be
    skipping the second file launch and just inserts the next set of results.

    kiyomi Guest

Similar Threads

  1. How can I convert a folder of word doents to PDF at one time
    By Lisa_Coates@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: February 9th, 02:55 AM
  2. Converting Multiple Word Doents Into OnePDF With Bookmarks Based On Headings
    By Carl_Augustin@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 1
    Last Post: December 13th, 01:31 PM
  3. Converting a folder of word doents to PDF at one time
    By Lisa_Coates@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 0
    Last Post: May 6th, 03:18 PM
  4. Coverting Indesign 2.0 doents to Microsoft Word xp doents
    By Pam_Sepesi@adobeforums.com in forum Adobe Indesign Windows
    Replies: 3
    Last Post: May 3rd, 02:43 AM
  5. Desperate to convert Word doents into PDF doents
    By R_Vaughan@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 17
    Last Post: April 19th, 06:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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