Re: [cfaussie] CF 11 creating barcodes

2015-04-22 Thread Dmitry Yakhnov

Hi Brian,

I am using BBQ library in one of the projects, had same problem, but in 
CF10.


>> In headless env there is no default font. It causes that text isn't 
added.

http://sourceforge.net/p/barbecue/patches/3/

You have to upgrade to version 1.9-alpha1, which has that patch:

1. Download [trunk] snapshot from 
http://sourceforge.net/p/barbecue/code/HEAD/tree/

2. Unzip file and run build.bat
3. Get barbecue-1.9-alpha1.jar from build/dist folder and replace 
barbecue-1.5-beta1.jar with it


Good luck!

Cheers,
Dmitry.

On 23/04/2015 10:43 AM, Brian Knott wrote:

Hi Guys.
I running the Barbecue barcode application on CF V8.  No issues works 
well.
I'm in the process of doing a migration to CF11.  The barcodes do 
generate but in CF11 there are no numbers below the barcode.  I think 
it has something to do with the font.
I'm running V1.5 beta 1.  Which appears to be the latest version 
http://barbecue.sourceforge.net/
Has anyone had an experience with this product and CF 10 or 11.  Does 
anyone use a different produce to produce barcodes.

Code snippet below.
bc = createobject("java","net.sourceforge.barbecue.Barcode");
bcFactory = 
createobject("java","net.sourceforge.barbecue.BarcodeFactory");
bcEnv = 
createObject("java","net.sourceforge.barbecue.env.EnvironmentFactory");

   os = createobject("java","java.io.FileOutputStream");
   number = orderNumber;
   bcImage = 
createobject("java","net.sourceforge.barbecue.BarcodeImageHandler");

   bc = bcFactory.createCode128("*2175#number#");
   bc.setLabel("*2175 #number#");
   bc.setBarWidth(0.35);
   bcEnv.setHeadlessMode();
   bc.setFont(bcEnv.getEnvironment().getDefaultFont());
   bc.setDrawingText(true);
   bc.setDrawingQuietSection(true);
   fileName = "c:\inetpub\wwwroot\iMine Prod\BBQ\#url.id#.jpg";
   bcImage.writeJPEG(bc, os.init(fileName));
   os.flush();
   os.close();
Brian
--
You received this message because you are subscribed to the Google 
Groups "cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to cfaussie+unsubscr...@googlegroups.com 
.
To post to this group, send email to cfaussie@googlegroups.com 
.

Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.


[cfaussie] CF 11 creating barcodes

2015-04-22 Thread Brian Knott
 
  Hi Guys.
  
 I running the Barbecue barcode application on CF V8.  No issues works 
well.
  
 I'm in the process of doing a migration to CF11.  The barcodes do generate 
but in CF11 there are no numbers below the barcode.  I think it has 
something to do with the font.
  
 I'm running V1.5 beta 1.  Which appears to be the latest version 
http://barbecue.sourceforge.net/
  
 Has anyone had an experience with this product and CF 10 or 11.  Does 
anyone use a different produce to produce barcodes.
  
 Code snippet below.
  
 bc = createobject("java","net.sourceforge.barbecue.Barcode");
 bcFactory = 
createobject("java","net.sourceforge.barbecue.BarcodeFactory");
 bcEnv = 
createObject("java","net.sourceforge.barbecue.env.EnvironmentFactory");
  
  
os = createobject("java","java.io.FileOutputStream");
number = orderNumber;
bcImage = 
createobject("java","net.sourceforge.barbecue.BarcodeImageHandler");
bc = bcFactory.createCode128("*2175#number#");
bc.setLabel("*2175 #number#");
bc.setBarWidth(0.35);
bcEnv.setHeadlessMode();
bc.setFont(bcEnv.getEnvironment().getDefaultFont());
bc.setDrawingText(true);
bc.setDrawingQuietSection(true);
fileName = "c:\inetpub\wwwroot\iMine Prod\BBQ\#url.id#.jpg";
bcImage.writeJPEG(bc, os.init(fileName));
os.flush();
os.close();
  
  
Brian
  

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.