Followup, here's what I used to print to an HP m251w. Works great printing to Avery 5520 3x10 labels. Set margin to 0 when printing from within Chrome:
<cfsetting showdebugoutput="No" enablecfoutputonly="Yes"><!--- ---> <cfimport taglib="/extensions/custom_tags/" prefix="ct"> <ct:security allow="board,admin"><!--- ---> <cfparam name="url.memberFamilyID" default="0"> <cfquery name="getRecord" datasource="#request.datasource#"> [redacted] </cfquery> <cfoutput> <html> <head> <meta name="google" value="notranslate"> <meta http-equiv="content-language" content="en"> <script type="text/javascript" src=" http://barcode-coder.com/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src=" http://barcode-coder.com/js/jquery-ui-1.7.custom.min.js"></script> <script type="text/javascript" src=" http://barcode-coder.com/js/jquery-barcode-last.min.js"></script> <script language="JavaScript"> function bc() { <cfloop query="getRecord">$('##bcTarget#getRecord.memberID#').barcode('#getRecord.memberID#', 'code128', {barHeight:50, barWidth:1, showHRI:true, fontSize: 11}); </cfloop> } </script> <style> @media print { div.row {page-break-after: auto;} div.spacer {height: 90px;} } body {text-align: center; font-family: arial; font-size: 11px; margin-left: 0px; margin-right: 0px; margin-top: 45px; margin-bottom: 48px;} div.spacer {height: 90px; clear: both; border: 0px solid blue;} div.row {margin: 0px; padding: 0px; page-break-after: auto;} div.label {width: 232px; height: 83px; margin-left: 13px; border: 1px solid white; float: left; padding-top: 5px;} </style> </head> <body onLoad="bc();"> <div class="row"> <cfloop query="getRecord"> <div class="label" align="center"><div class="bc" id="bcTarget#getRecord.memberID#"></div> #getrecord.memberfirstname# #getrecord.memberLastName# #getrecord.memberNameSuffix# (DOB: #dateFormat(getRecord.memberDOB, "MM/DD/YYYY")#)</div><cfif getrecord.currentrow MOD 3 EQ 0></div> <cfif getrecord.currentrow MOD 30 EQ 0> <div class="spacer"> </div> </cfif> <div class="row"></cfif> </cfloop> </div> </body> </html> </cfoutput> On Tue, Mar 25, 2014 at 7:48 PM, Pete Ruckelshaus <pruckelsh...@gmail.com>wrote: > Thanks. I think I'm going to try using CSS and print as an HTML file > first, and if I run into issues, I'll go with cfdocument. > > > On Tue, Mar 25, 2014 at 3:35 PM, Akos Fortagh <akos.fort...@yahoo.com>wrote: > >> >> Sorry if I misunderstand the issue. I've used cfbarbecue >> http://cfbarbecue.riaforge.org/ in a number of apps with no problems. >> It simply uses <cfimage> to print the barcode to the screen. I opened >> that document in a small window and sent it to label printer using JS >> window.print(). >> Then using any label printer I have been able to print the barcode >> perfectly. >> HTH >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358680 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm