I'm doing a quick and dirty label printing app using ColdFusion for one of our departments. For some reason, the page break doesn't work. I've used similiar code with several different apps. Thanks in advance.... urgent to help save my sanity...
<cfoutput>
<cfset COLCOUNT = 0>
<cfset LOOPCNT = 0>
<cfset LABELCNT = 0>
<cfset COL_1 = ArrayNew(1)>
<cfset COL_2 = ArrayNew(1)>
<cfset COL_3 = ArrayNew(1)>
<cfloop query="qryContacts">
<cfset COLCOUNT = COLCOUNT + 1>
<cfset LOOPCNT = LOOPCNT + 1>
<cfif COLCOUNT eq 1>
<cfset TEMP1 = ArraySet(COL_1, 1,4,0)> <!--- Each Time 1 Is Reached, Clear Array Values --->
<cfset TEMP2 = ArraySet(COL_2, 1,4,0)>
<cfset TEMP3 = ArraySet(COL_3, 1,4,0)>
<cfset COL_1[1] = '#qryContacts.BudgetGroupN
um#'>
<cfset COL_1[2] = '#qryContacts.ContactName#
'>
<cfset COL_1[3] = '#qryContacts.ContactAddrL
ine1#'>
<cfset COL_1[4] = '#qryContacts.ContactAddrL
ine2#'>
<cfelseif COLCOUNT eq 2>
<cfset COL_2[1] = '#qryContacts.BudgetGroupN
um#'>
<cfset COL_2[2] = '#qryContacts.ContactName#
'>
<cfset COL_2[3] = '#qryContacts.ContactAddrL
ine1#'>
<cfset COL_2[4] = '#qryContacts.ContactAddrL
ine2#'>
<cfelseif COLCOUNT eq 3>
<cfset COL_3[1] = '#qryContacts.BudgetGroupN
um#'>
<cfset COL_3[2] = '#qryContacts.ContactName#
'>
<cfset COL_3[3] = '#qryContacts.ContactAddrL
ine1#'>
<cfset COL_3[4] = '#qryContacts.ContactAddrL
ine2#'>
</cfif>
<cfif COLCOUNT eq 3 or LOOPCNT eq #qryContacts.recordcount#>
<cfset LABELCNT = #LABELCNT# + 1>
<table>
<tr>
<td width="230"><cfif #COL_1[1]# gt ''>#COL_1[1]#<cfelse> 
;</cfif></
td>
<td width="260"><cfif #COL_2[1]# gt ''>#COL_2[1]#<cfelse> 
;</cfif></
td>
<td width="220"><cfif #COL_3[1]# gt ''>#COL_3[1]#<cfelse> 
;</cfif></
td>
</tr>
<tr>
<td width="230"><cfif #COL_1[2]# gt ''>#COL_1[2]#<cfelse> 
;</cfif></
td>
<td width="260"><cfif #COL_2[2]# gt ''>#COL_2[2]#<cfelse> 
;</cfif></
td>
<td width="220"><cfif #COL_3[2]# gt ''>#COL_3[2]#<cfelse> 
;</cfif></
td>
</tr>
<tr>
<td width="230"><cfif #COL_1[3]# gt ''>#COL_1[3]#<cfelse> 
;</cfif></
td>
<td width="260"><cfif #COL_2[3]# gt ''>#COL_2[3]#<cfelse> 
;</cfif></
td>
<td width="220"><cfif #COL_3[3]# gt ''>#COL_3[3]#<cfelse> 
;</cfif></
td>
</tr>
<tr>
<td width="230"><cfif #COL_1[4]# gt ''>#COL_1[4]#<cfelse> 
;</cfif></
td>
<td width="260"><cfif #COL_2[4]# gt ''>#COL_2[4]#<cfelse> 
;</cfif></
td>
<td width="220"><cfif #COL_3[4]# gt ''>#COL_3[4]#<cfelse> 
;</cfif></
td>
</tr>
<table>
<cfset COLCOUNT = 0> <!--- Reset Column Count --->
</cfif>
<cfif LABELCNT eq 10>
<p style="page-break-before:a
lways">
<img src="../IMAGES/cleardot.gi
f" width="16" height="16" alt="" border="0">
<img src="../IMAGES/cleardot.gi
f" width="16" height="16" alt="" border="0">
</p>
<cfset LABELCNT = 0>
</cfif>
</cfloop>
</cfoutput>