Blazor Barcode API



The WOFF2 barcode fonts are available in the "Resource\WOFF2\fonts" folder of the ConnectCode Barcode Fonts and Software package.

Code 128 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.Code128Auto; //Code128A, Code 128B, or Code128C
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCode128;
            src: url("/fonts/ConnectCode128_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCode128', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>





GS1 128 (UCCEAN) Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.UCCEAN;
        bcf.GS1Compliance=BarcodeFonts.YesNoEnum.Yes;
        bcf.Data = "(10)12345678"; //GS1 128 uses Code 128 barcode fonts
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCode128;
            src: url("/fonts/ConnectCode128_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCode128', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



I2of5 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.I2of5; 
	bcf.CheckDigit = BarcodeFonts.YesNoEnum.Yes;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeI2of5;
            src: url("/fonts/ConnectCodeI2of5_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeI2of5', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



ITF14 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.ITF; 
	bcf.CheckDigit = BarcodeFonts.YesNoEnum.Yes;
        bcf.BearersBar = BarcodeFonts.BearersEnum.TopBottom;
        //bcf.BearersBar = BarcodeFonts.BearersEnum.Rectangle;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeITF14;
            src: url("/fonts/ConnectCodeITF_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeITF14', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



EAN13 Barcode (Standard Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.EAN13; 
        bcf.Extended = BarcodeFonts.YesNoEnum.No;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeEAN13;
            src: url("/fonts/ConnectCodeUPCEAN_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeEAN13', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



EAN13 Barcode (Extended Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.EAN13; 
        bcf.Extended = BarcodeFonts.YesNoEnum.Yes
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        //barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeEAN13;
            src: url("/fonts/ConnectCodeUPCEAN_HRBS3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeEAN13', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



UPCA Barcode (Standard Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.UPCA; 
        bcf.Extended = BarcodeFonts.YesNoEnum.No;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeUPCA;
            src: url("/fonts/ConnectCodeUPCEAN_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeUPCA', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



UPCA Barcode (Extended Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.UPCA; 
        bcf.Extended = BarcodeFonts.YesNoEnum.Yes
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        //barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeUPCA;
            src: url("/fonts/ConnectCodeUPCEAN_HRBS3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeUPCA', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



EAN8 Barcode (Standard Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.EAN8; 
        bcf.Extended = BarcodeFonts.YesNoEnum.No;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeEAN8;
            src: url("/fonts/ConnectCodeUPCEAN_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeEAN8', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



EAN8 Barcode (Extended Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.EAN8; 
        bcf.Extended = BarcodeFonts.YesNoEnum.Yes
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        //barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeEAN8;
            src: url("/fonts/ConnectCodeUPCEAN_HRBS3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeEAN8', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



UPCE Barcode (Standard Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.UPCE; 
        bcf.Extended = BarcodeFonts.YesNoEnum.No;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeUPCE;
            src: url("/fonts/ConnectCodeUPCEAN_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeUPCE', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



UPCE Barcode (Extended Style)

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.UPCE; 
        bcf.Extended = BarcodeFonts.YesNoEnum.Yes
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        //barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeUPCE;
            src: url("/fonts/ConnectCodeUPCEAN_HRBS3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeUPCE', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



EXT2 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.EXT2; 
        bcf.Data = "12";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeUPCEAN;
            src: url("/fonts/ConnectCodeUPCEAN_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeUPCEAN', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



EXT5 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.EXT5; 
        bcf.Data = "12345";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeUPCEAN;
            src: url("/fonts/ConnectCodeUPCEAN_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeUPCEAN', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



Code 39 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.Code39; 
	bcf.CheckDigit = BarcodeFonts.YesNoEnum.Yes;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCode39;
            src: url("/fonts/ConnectCode39_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCode39', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>





Code 39 Extended (ASCII) Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.Code39Ascii; 
	bcf.CheckDigit = BarcodeFonts.YesNoEnum.Yes;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCode39;
            src: url("/fonts/ConnectCode39_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCode39', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



Code 93 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.Code93; 
	bcf.CheckDigit = BarcodeFonts.YesNoEnum.Yes;
        bcf.Data = "123456789";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCode39;
            src: url("/fonts/ConnectCode93_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCode93', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



GS1 Databar 14 Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.GS1DataBar14; 
        bcf.Data = "12401234567898";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeGS1D;
            src: url("/fonts/ConnectCodeGS1D_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeGS1D', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



Modified Plessy Barcode

Sample .NET API


    void GenerateBarcode()
    {
        BarcodeFonts bcf = new BarcodeFonts();		
	bcf.BarcodeType = BarcodeFonts.BarcodeEnum.ModifiedPlessy; 
	bcf.CheckDigit = BarcodeFonts.YesNoEnum.Yes;
        bcf.Data = "12345678";
        bcf.encode();
        barcode = bcf.EncodedData;
        barcode_text = bcf.HumanText;
    }



CSS


    <STYLE TYPE="text/css" media="screen,print">
        @font-face {
            font-family: CCodeMSI;
            src: url("/fonts/ConnectCodeMSI_S3.woff2") format('woff2')		
        }

        #barcode {
            font-weight: normal;
            font-style: normal;
            line-height: normal;
            font-family: 'CCodeMSI', sans-serif;
            text-align: center;
            font-size: 32px
        }

    </STYLE>



Back to Blazor Barcodes.