Re: coldfusion barcode
Hi Phillip, We have tried this function (even copied and pasted your code) but altering the height does not work, do you have this problem? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326497 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
I haven't played with it enough to run into the issue. Sorry. On Tue, Sep 22, 2009 at 10:17 AM, Richard White rich...@j7is.co.uk wrote: Hi Phillip, We have tried this function (even copied and pasted your code) but altering the height does not work, do you have this problem? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326499 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: coldfusion barcode
ok thanks I haven't played with it enough to run into the issue. Sorry. On Tue, Sep 22, 2009 at 10:17 AM, Richard White rich...@j7is.co.uk wrote: Hi Phillip, We have tried this function (even copied and pasted your code) but altering the height does not work, do you have this problem? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326515 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
our software needs to have the ability to generate a barcode gif and place it on a document. has anyone done this before, and what is the best method? Not with GIFs and HTML, but PDFs support barcodes nicely. I haven't worked with them from CF, but I suspect it may be possible. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326427 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: coldfusion barcode
I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- == FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION:1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY:pears...@aquinas.vic.edu.au WRITTEN:17/11/2004 DESCRIPTION:Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com === --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTopdefault= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTopdefault=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],2,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],7,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height:
Re: coldfusion barcode
I have used the java lib barbecue http://barbecue.sourceforge.net/index.html in CFML before and it worked out well. On Fri, Sep 18, 2009 at 9:22 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- == FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION:1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY:pears...@aquinas.vic.edu.au WRITTEN:17/11/2004 DESCRIPTION:Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com === --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTopdefault= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTopdefault=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],2,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span
Re: coldfusion barcode
Thanks Phillip, perfect solution, we actually found it on adobe as a free download: http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1020465# I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- = = FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION: 1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY: pears...@aquinas.vic.edu.au WRITTEN: 17/11/2004 DESCRIPTION: Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com == = --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTopdefault= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTopdefault=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes. InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes. BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes. MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes. InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes. BarWidth/2))#px solid; border-color: white; height: #Attributes.BarHeight#px;margin-bottom:#Attributes. MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes. InputValue,i,1))],2,1)*(Attributes.BarWidth)+(Attributes. BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.
Re: coldfusion barcode
There are several methods that integrate well with CF. First, what type of barcode are you using? If it is 3 of 8, 7 of 9, or posta or MICR l you can just grab a barcode font (there are some free ones out there) and embed the font into a pdf document cfdocument type=pdf That is the easiest method. Stepping up in difficulty would be to purchase a bar code control. Do a google search, there are many different vendors/products out there. You then would call the dll or ocx using cfmethod. You can set up any of the attributes necessary and there is usually an output method of some kind that you would call to place the bar code in your document. The advantage of using a control is they usually can handle all bar code types including 2D types and international postal codes along with UPC, GS1-128 and all the others. The disadvantage is it is a bit more programming to make it all work. There are third party bar code generation programs out there as well that can generate the code and pass it back to you as an object which you would then embed in your document. These can be costly if you run high volume. Another option to consider though depending on your situation. I do bar codes all the time right now. It really isn't that difficult. --S ^ On Fri, Sep 18, 2009 at 9:02 AM, Richard White rich...@j7is.co.uk wrote: hi our software needs to have the ability to generate a barcode gif and place it on a document. has anyone done this before, and what is the best method? thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326431 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: coldfusion barcode
This may also help to use Barbecue (although the package may have changed a little since then). http://www.bifrost.com.au/blog/index.cfm/2006/8/24/Generating-Barcodes-with-Barbecue-and-Coldfusion mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/18 Kevin Pepperman chorno...@gmail.com: I have used the java lib barbecue http://barbecue.sourceforge.net/index.html in CFML before and it worked out well. On Fri, Sep 18, 2009 at 9:22 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- == FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION: 1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY: pears...@aquinas.vic.edu.au WRITTEN: 17/11/2004 DESCRIPTION: Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com === --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTop default= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTop default=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],1,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: black; height: #Attributes.BarHeight#px;margin-bottom:#Attributes.MarginBottom#px;margin-top:#Attributes.MarginTop#px;/span span style=border-right:#val(mid(code39[asc(mid(Attributes.InputValue,i,1))],6,1)*(Attributes.BarWidth)+(Attributes.BarWidth/2))#px solid; border-color: white; height:
RE: coldfusion barcode
Friend and Guru Ryan Stille produced a bar code component for us that uses an inexpensive commercial java class. http://www.stillnetstudios.com/2d-barcodes-coldfusion/ -mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: James Holmes [mailto:james.hol...@gmail.com] Sent: Friday, September 18, 2009 11:01 AM To: cf-talk Subject: Re: coldfusion barcode This may also help to use Barbecue (although the package may have changed a little since then). http://www.bifrost.com.au/blog/index.cfm/2006/8/24/Generating-Barcodes-with- Barbecue-and-Coldfusion mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/9/18 Kevin Pepperman chorno...@gmail.com: I have used the java lib barbecue http://barbecue.sourceforge.net/index.html in CFML before and it worked out well. On Fri, Sep 18, 2009 at 9:22 AM, Phillip Vector vec...@mostdeadlygame.comwrote: I forget where I've seen it, I think RIAForge has barcode39.cfm. It's a nice piece of program and generates lots of different types of codes. Here's the code if you want it.. !--- = = FILE: barcode39.cfm - Custom tag for Code 39 (3 from 9) barcodes VERSION: 1.0 AUTHOR: Philip Pearson (Inspired by Ryan Masuga's UPCA version) MODIFIED BY: pears...@aquinas.vic.edu.au WRITTEN: 17/11/2004 DESCRIPTION: Writes barcodes in a browser window ready to be printed and scanned. COMMENTS: Code 39 specs from www.barcodeman.com = == --- !--- These are fairly self explanatory --- cfparam name=Attributes.InputValue default=INVALID cfparam name=Attributes.BarWidth default=2 cfparam name=Attributes.BarHeight default=50 cfparam name=Attributes.TextTop default= cfparam name=Attributes.TextBottom default= cfparam name=Attributes.TextFontTop default=font: bold 14px Arial, sans-serif cfparam name=Attributes.TextFontBottom default=font: bold 18px Courier, sans-serif cfparam name=Attributes.MarginTop default=0 cfparam name=Attributes.MarginBottom default=0 !--- Initialize array. Note: not all characters are supported by the code 39 specification, --- !--- so invalid characters will show as a $ sign. Lowercase not supported either. --- cfset code39 = ArrayNew(1) cfloop index=i from=1 to=256 cfset code39[i] = 01110 !--- '$' is default init string --- /cfloop !--- Load array with all the supported characters' bar attributes --- cfset code39[32] = 001101000 !--- --- cfset code39[36] = 01110 !--- $ --- cfset code39[37] = 00111 !--- % --- cfset code39[42] = 001101000 !--- * --- cfset code39[43] = 01011 !--- + --- cfset code39[45] = 000111000 !--- - --- cfset code39[46] = 100101000 !--- . --- cfset code39[47] = 01101 !--- / --- cfset code39[48] = 001100100 !--- 0 --- cfset code39[49] = 100010100 !--- 1 --- cfset code39[50] = 010010100 !--- 2 --- cfset code39[51] = 11100 !--- 3 --- cfset code39[52] = 001010100 !--- 4 --- cfset code39[53] = 101000100 !--- 5 --- cfset code39[54] = 011000100 !--- 6 --- cfset code39[55] = 000110100 !--- 7 --- cfset code39[56] = 100100100 !--- 8 --- cfset code39[57] = 010100100 !--- 9 --- cfset code39[65] = 100010010 !--- A --- cfset code39[66] = 010010010 !--- B --- cfset code39[67] = 11010 !--- C --- cfset code39[68] = 001010010 !--- D --- cfset code39[69] = 10110 !--- E --- cfset code39[70] = 01110 !--- F --- cfset code39[71] = 000110010 !--- G --- cfset code39[72] = 100100010 !--- H --- cfset code39[73] = 010100010 !--- I --- cfset code39[74] = 001100010 !--- J --- cfset code39[75] = 100010001 !--- K --- cfset code39[76] = 010010001 !--- L --- cfset code39[77] = 11001 !--- M --- cfset code39[78] = 001010001 !--- N --- cfset code39[79] = 10101 !--- O --- cfset code39[80] = 01101 !--- P --- cfset code39[81] = 000110001 !--- Q --- cfset code39[82] = 10011 !--- R --- cfset code39[83] = 01011 !--- S --- cfset code39[84] = 00111 !--- T --- cfset code39[85] = 100011000 !--- U --- cfset code39[86] = 010011000 !--- V --- cfset code39[87] = 110001000 !--- W --- cfset code39[88] = 001011000 !--- X --- cfset code39[89] = 101001000 !--- Y --- cfset code39[90] = 011001000 !--- Z --- !--- Code 39 specification requires * at the start and end of the barcode --- cfset Attributes.InputValue = * Attributes.InputValue * cfoutput span style=#Attributes.TextFontTop##Attributes.TextTop#/span div cfloop index=i from=1 to=#len(Attributes.InputValue)# span style=border-right:#val(mid(code39[asc(mid
Re: coldfusion barcode
thanks for all the replies and a few options to think about, this will help us a great deal to make sure we choose the right option hi our software needs to have the ability to generate a barcode gif and place it on a document. has anyone done this before, and what is the best method? thanks richard ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326440 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4