Printing Address Labels with Coldfusion |
This is a hack, for sure, but this does output a pdf that will print on Avery 5260 address labels: <cfdocument format="PDF" scale="80" marginleft="1" margintop=".25" marginbottom=".25" marginright=".05"> <!--- Specify the number of columns to return ---> <CFSET NumCols = 3> <!--- Use a table---> <table> <tr> <CFOUTPUT query="Seeds"> <CFIF (CurrentRow MOD NumCols) IS 1> </tr><tr> </CFIF> <td height="115" <div style="width: 1000px" >#plant_name#<br /> #dateFormat(now (),"mm/dd/yyyy")#</div></td> </CFOUTPUT> </tr> </table> </cfdocument> |
Archives