Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Generate Barcode in Labels in Crystal Reports Post Reply Post New Topic
Author Message
JohnyMoraes
Newbie
Newbie


Joined: 17 Mar 2011
Online Status: Offline
Posts: 6
Quote JohnyMoraes Replybullet Topic: Generate Barcode in Labels in Crystal Reports
    Posted: 29 Mar 2012 at 4:53am
Good Morning.
I need to generate some barcodes in labels in Crystal Reports and I had some dificulties...
What the best way to do this ?
I Googled for some methods, but in the majority of them is a paid solution...

I like to know more than one methods of barcodes, like Code 39 and UPC-A.
Thanks!
IP IP Logged
tonytr
Newbie
Newbie


Joined: 29 Feb 2012
Location: Canada
Online Status: Offline
Posts: 6
Quote tonytr Replybullet Posted: 08 May 2012 at 1:22pm
There is an open source barcode library, please refer to this link: http://code.google.com/p/zxing/
And you can also have a look at the Crystal Reports Code 39 generator and Crystal Reports UPC-A generator
IP IP Logged
money
Newbie
Newbie


Joined: 26 Mar 2012
Online Status: Offline
Posts: 3
Quote money Replybullet Posted: 30 Aug 2012 at 10:14pm
MacroBarcode .NET Crystal Reports generator is good too. Check to see.
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 31 Aug 2012 at 7:57am
you can do it with a function - in that function we have a font called OCR-A BT

http://www.azfonts.net/load_font/ocr-a_bt.htmlOCR Font Free

here is ours

local stringvar xw;       
local numberVar array x := [0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
local numbervar xt;
local numbervar lsum;
local numbervar lsum2;
local numbervar lsum3;
local numbervar lprod;
local numbervar lschk;
local numbervar lschk1;
local numbervar lschk2;
local numbervar lschk3;

for xt := 1 to 5 step 1 do x[xt + 2] := Int(ToNumber(Mid({@strInvoice},xt , 1)));
for xt := 1 to 2 step 1 do x[xt + 8] := int(ToNumber(Mid({@l-s-serx},xt,1)));
for xt := 2 to 8 step 1 do x[xt + 10] := int(tonumber(mid({@l-s-amtx},xt,1)));
lsum := 0;
for xt := 4 to 6 step 2 do lsum := lsum + x [xt];
for xt := 3 to 7 step 2 do lsum := lsum + Int((2 * x[xt]) / 10) + Remainder (2 * x[xt],10 );
lschk := remainder(10 - remainder(lsum,10),10);
x[8] := lschk;
lprod := 2 * x[9];
lsum := x[10] + int(lprod / 10) + remainder(lprod,10);
lschk1 := remainder(10 - remainder(lsum,10),10);
x[11] := lschk1;
lsum2 := 0;
for xt := 13 to 17 step 2 do lsum2 := lsum2 + x[xt];
lsum3 := 0;
for xt := 12 to 18 step 2 do lsum3 := lsum3 + int((2 * x[xt]) / 10) + remainder(2 * x[xt],10);
lsum2 := lsum2 + lsum3;
lschk2 := remainder(10 - remainder(lsum2,10),10);
x[19] := lschk2;

lsum := 0;
for xt := 2 to 18 step 2 do lsum := lsum + x[xt];
for xt := 1 to 19 step 2 do lsum := lsum + int((2 * x[xt]) / 10) + remainder(2 * x[xt],10);
lschk3 := remainder(10 - remainder(lsum,10) ,10);

xw := replicatestring(' ',45);
xw := mid(xw,1,10) + {@l-s-type} + replicatestring(' ',45 - 10 - len({@l-s-type}));
xw := mid(xw,1,14) + {@strInvoice} + replicatestring(' ',45 - 14 - len({@strInvoice}));
xw := mid(xw,1,19) + totext(lschk,0,'','') + replicatestring(' ',45 - 19 - len(totext(lschk,0,'','')));
xw := mid(xw,1,22) + {@l-s-serx} + replicatestring(' ',45 - 22 - len({@l-s-serx}));
xw := mid(xw,1,24) + totext(lschk1,0,'','') + replicatestring(' ',45 - 24 - len(totext(lschk1,0,'','')));
xw := mid(xw,1,27) + mid({@l-s-amtx},2,8) + replicatestring(' ',45 - 27 - len(mid({@l-s-amtx},2,8)));
xw := mid(xw,1,34) + totext(lschk2,0,'','') + replicatestring(' ',45 - 34 - len(totext(lschk2,0,'','')));
xw := mid(xw,1,37) + totext(lschk3,0,'','') + replicatestring(' ',45 - 37 - len(totext(lschk1,0,'','')));
xw := mid(xw,1,39) + ' ' + {@l-s-chair};

xw;
IP IP Logged
recthor
Newbie
Newbie


Joined: 06 Jun 2013
Location: United States
Online Status: Offline
Posts: 9
Quote recthor Replybullet Posted: 07 Jun 2013 at 3:54pm

there are many ways to do that. If you wanna save these complicated steps and find a easy way, you can google  barcode generator and you will find many useful tools, or google how to create barcode in c# to get instructive articles. Good luck:) I think some imaging sdk  programmes can enable to quickly generate barcodes. i have use imaging sdkr which can original layouts hyperlinks, Images and tables retained in word ,text, image, Epub, html.but i forgot download the wedsite ,go to google. By the way , pay attention to your system platform, select the suitable one . I use a barcode generator driver found on the internet . Install it and it becomes a selectable option.Then you can generate barcodes  in many formats  in any program at all, including Adobe Acrobat . Just open the sdk, select barcode, and choice a form you want, then you can generate barcode in c#, vb, asp ,etc ,the task will be finished in several seconds. if you haven't found a good choice  , you can have a try. best wishes.

 

IP IP Logged
arronlee
Newbie
Newbie


Joined: 18 Jun 2013
Online Status: Offline
Posts: 2
Quote arronlee Replybullet Posted: 19 Jun 2013 at 4:37pm
Hi, recthor.
Nice sharing.
Thanks a lot for that.
But I wonder whether the free tools online have as many professional fuctions as the paid ones.
I used to
generate  barcodes in labels in Crystal Reports with another Barcode Generator SDK whose processing way is simple and fast.
Even though I only tried its free trial package and didn´t check the cost and licensing conditions, it works well.
You can pick you indeed need if necessary.
And I will try your guys´ sharing later and find more.
Many thanks again.


Best regards,
Arron

IP IP Logged
luffyripper
Newbie
Newbie


Joined: 26 Feb 2014
Location: Indonesia
Online Status: Offline
Posts: 1
Quote luffyripper Replybullet Posted: 26 Feb 2014 at 10:45pm
Hi, i have problem with barcode in crytal report using font.

When we browse from client computer, barcode not show(just standard font) bcoz no barcode font in client computer.

So, how to fix this(without install barcode font in client computer)?

Thanks,
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.064 seconds.