How to generate Code39 barcodes in vb.net

后端 未结 10 1813
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-08 05:55

I want to create Code39 encoded barcodes from my application.

I know I can use a font for this, but I\'d prefer not to as I\'d have to register the font on the serv

10条回答
  •  长情又很酷
    2020-12-08 06:29

    The iTextSharp library, while ostensibly for creating creating PDFs, also has a barcode generation library that includes Code39.

    Once you add a reference to the DLL, it's as simple as:

    Barcode39 code39 = new Barcode39();
    code39.Code = "Whatever You're Encoding";
    

    Oops, that's C#, but you get the idea. Once created, you can render an image in just about any image format and use it as you wish.

提交回复
热议问题