print out the same row three times

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default print out the same row three times

    I have records in the color table.
    Index_id colorname
    1 red
    2 yellow
    3 blue
    4 orange

    I would like to print out the same row three times by adding a different
    static character as below (format: index_ID, A, B, or C, colorname)

    1Ared
    1Bred
    1Cred
    2Ayellow
    2Byellow
    2Cyellow
    3Ablue
    3Bblue
    3Cblue
    4Aorange
    4Borange
    4Corange



    HandersonVA Guest

  2. Similar Questions and Discussions

    1. Saving Print Settings in a Document via Print Advanced Menu
      I just discovered in the Help file you can do the above but it doesn't say how. I want to save the document so it can be printed on anyone's printer...
    2. Creating PDFs from Freehand -- print to PDFvs. export vs. print/scan to PDF?
      I've had a lot of compatibility problems with created presentations so have started using Acrobat instead of trying to export my Macromedia Freehand...
    3. Can't print some jobs at some times
      I have problems to get some PDFs printed out of Acrobat 6. Those files DO always print well on another computer. Those files only sometimes print on...
    4. print to pdf doesn't work. queue in the print center stopped
      hi, have a huge problem with printing a pdf. when i'm in illustrator for example and choose to print a simple page to pdf, it moves the file into...
    5. Illustrator 10 Print Space settings in Print Dialog
      Howdy all; I've got a peculiar situation that I haven't found an answer to yet. On my laptop PC (Windows XP Home) when I go to print a document...
  3. #2

    Default Re: print out the same row three times

    Just use the ascii codes of the characters that you want to prepend for the
    index of a loop

    <cfoutput query.....................>
    <cfloop from="#Asc('A')#" to="#Asc('C')#" index="idx">
    #Chr(idx)##queryName.ColumnName#
    </cfloop>
    </cfoutput>

    Ken

    The ScareCrow Guest

  4. #3

    Default Re: print out the same row three times

    Or ...



    <cfoutput query="myqry">
    #index_ID# A #colorname#<br>
    #index_ID# B #colorname#<br>
    #index_ID# C #colorname#<br>
    </cfoutput>
    eastinq 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