Logi Info Forum Threads    >    Posts


IDAutomation code128 Barcode?

Trek Tom
United States

09 Nov 2019 02:43 AM
   
This thread is open for replies.
12.2   .NET app   267 views   Subscribe  


Hello

Are there any examples to display barcode using IDAutomation code128 barcode fonts in Logi?

Please share.

Regards

TomT

Blake Ryner
United States

13 Nov 2019 11:44 AM

If you add your font files on your app server and then include the font face in some CSS you should be set.  In Logi you could use the HTML Element with a style attribute that sets the font face.

Here is an example of the markup from ID automation.

https://www.idautomation.com/barcode-fonts/woff-web-fonts/#JavaScript_Dynamic_Font_Encoder_Example

I use the same basic idea when using font awesome fonts and custom Google fonts.

 

Trek Tom
United States

13 Nov 2019 09:54 PM

 

Can you share sampel definition file that can be used as reference please?

Regards

Stoney Anderson
United States

20 Nov 2019 09:54 AM

Just add a html element and add the following code

<!DOCTYPE html>
<html>
<head>


<STYLE TYPE="text/css">
<!-- /* include the idautomation.com Code39 WOFF Font -- */
@ font-face {
font-family: IDAutomationHC39M;
src: url(https://www.idautomation.com/barcode-fonts/woff-web-fonts/IDAutomationHC39M.woff);
}


.IDAuto39{font-family: 'IDAutomationHC39M';font-size: 16px;}

 


-->
</STYLE>


</head>

</html>

 

then put IDAuto39 class on the label and that should work 

the problem I am having is I can't get the barcode to show up when I export the PDF  and I also installed the bar code on my PC

Thanks, Stoney

 

Stoney Anderson
United States

20 Nov 2019 09:56 AM

add an Html element

<!DOCTYPE html>
<html>
<head>


<STYLE TYPE="text/css">
<!-- /* include the idautomation.com Code39 WOFF Font -- */
@ font-face {
font-family: IDAutomationHC39M;
src: url(https://www.idautomation.com/barcode-fonts/woff-web-fonts/IDAutomationHC39M.woff);
}


.IDAuto39{font-family: 'IDAutomationHC39M';font-size: 16px;}

 


-->
</STYLE>


</head>

</html>

 

then add the IDAuto39 class to  your label

Stoney Anderson
United States

20 Nov 2019 10:07 AM

Note barcode 39 just works you don't need to do anything

Find a 

U S S C o d e - 1 2 8 C h a r a c t e r S e t

chart and it will show what numbers to use

oops just realized you wanted 128 you have to calculate the check sum for example

you can write a function in javascript the *1,*2,etc are positions

To BarCode 128
Stoney
StartStoneyRemainderStop
104 + (51*1) + (84*2) + (79*3) + (78*4) + (69*5) + (89*6)

104 + 51 + 168 + 237 + 312 + 345 + 534 = 1751

1751/103=17 Remainder = 0


ÌStoneyÂÎ

================================================

example 2

to encode 

biz

104 start b is 66 *1 , i is 73 * 2, z is 90 * 3

104 + 61+146+ 270 =586

586/103 = 5 with remainder 71 which is g or ascii 103 so

ÌbizgÎ.

Stoney Anderson
United States

20 Nov 2019 10:10 AM

Find USS code-128 character set chart

 

There are 3 types of 128 B has everything

To BarCode 128
Stoney
StartStoneyRemainderStop
104 + (51*1) + (84*2) + (79*3) + (78*4) + (69*5) + (89*6)

104 + 51 + 168 + 237 + 312 + 345 + 534 = 1751

1751/103=17 Remainder = 0


ÌStoneyÂÎ

 

Calculate the Total: 104+ (66*1) + (73*2) + (90*3) = 586
2. Calculate the Checksum: 586 divided by 103 = 5 remainder of 71. Therefore, the check digit equals a value of 71. The character to
print for the value of 71 is “g” or ASCII 103.
3. To print the data “biz” as a barcode, the text of ÌbizgÎ is combined with the Code 128 Barcode Fonts.




 Back to top

Contact

United States
7900 Westpark Drive
Suite A200
McLean
Virginia, 22102
1-888-564-4965
[email protected]

United Kingdom
Scott House
The Concourse
Waterloo Station
London, SE1 7LY
020 3103 0306
[email protected]

Ireland
20 Harcourt Street
Suite 10
Dublin
D02 H364
3531 400 7506


© Copyright 2020 Logi Analytics, Inc. All Rights Reserved           |          Contact DevNet          |          Site FAQs          |          Terms of Use          |          LogiAnalytics.com