Code 39 Barcodes

Posted by Benson721 under ASP.NET on 5/21/2012 | Points: 10 | Views : 1127 | Status : [Member] | Replies : 6
Hello,

Struggling to print Code 39 image on my web pages.
I am using the barcode library, and hope to set the image as width of 300px, and 36px height. It must be support popular image format like jpeg, is this possible?




Responses

Posted by: Eli21 on: 5/21/2012 [Member] Starter | Points: 25

Up
0
Down
Hi, you can install a Code 39 font on your system, and create the barcode symbol on your web pages.

Benson721, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Loulou on: 5/21/2012 [Member] Starter | Points: 25

Up
0
Down
If you use barcode font, it won't be easy to have the barcode symbols sized.

Benson721, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Andrew_Richard on: 5/21/2012 [Member] Starter | Points: 25

Up
0
Down
"I suggest you to use barcode library, it is possible to change the image width, image format, image height by adjusting barcode properties. Here is the code in c#:

BarCode code39= new BarCode();
code39. Symbology = Symbology. Code39;
code39.CodeToEncode = ""6663"";
code39.ImageHeight = 300 px
code39.ImageWidth = 300 px
code39.ImageFormat = ImageFormat.Jpeg; "
http://www.keepautomation.com/products/net_barcode_aspnet/barcodes/code_39.html

Benson721, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Evan_9 on: 5/22/2012 [Member] Starter | Points: 25

Up
0
Down
Hi, I am trying to create code 39 in web applications also. But I am using VB, do you guys have some vb codes? Any help will be appreciated. Thanks in advance.


Benson721, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mariah on: 11/5/2013 [Member] Starter | Points: 25

Up
0
Down
sure check this found on google
http://www.keepautomation.com/vbnet_barcode/code_39.html
Dim code39 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
code39.Symbology = KeepAutomation.Barcode.Symbology.Code39
code39.CodeToEncode = "3939"

'Apply checksum for Code 39 barcode.
code39.ChecksumEnabled = True
'Display checksum in the Code 39 barcode text
code39.DisplayChecksum = True

'Unit of measure, Pixel, Cm and Inch supported.
code39.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel
'Code 39 image resolution in DPI.
code39.DPI = 72

'Set generated Code 39 image size

'Code 39 bar module width (X dimention)
code39.X = 1
code39.Y = 60
'Code 39 wide bar width vs narrow bar width. Valid from 2.0f to 3.0f.
code39.WideNarrowRatio = 2.0F
'Space between character symbol, a multiple of X.
code39.I = 1.0F


'Image left margin size, a 10X automatically added according to specification.
code39.LeftMargin = 0
'Image right margin size, a 10X automatically added according to specification.
code39.RightMargin = 0
'Code 39 image top margin size'
code39.TopMargin = 0
'Code 39 image bottom margin size'
code39.BottomMargin = 0

'Orientation, 90, 180, 270 degrees supported' Code 39 image bottom margin size

code39.Orientation = KeepAutomation.Barcode.Orientation.Degree0
'Code 39 image formats in Png, Gif, Jpeg/Jpg, Tiff, Bmp, etc.
code39.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif

'Set Code 39 human readable text style
code39.DisplayText = True
code39.TextFont = New Drawing.Font("Arial", 10.0F, Drawing.FontStyle.Regular)
'Space between barcode and text
code39.TextMargin = 6

'Print Code 39 Start & Stop character * in the barcode text
code39.DisplayStartStop = True

code39.generateBarcodeToImageFile("C://code39-vb-net.gif")

Benson721, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Evanpan on: 9/11/2015 [Member] Starter | Points: 25

Up
0
Down
I also found some tutorials about Code 39 processing:
http://www.pqscan.com/read-barcode/code39.html
I hope it helps. Good luck.

Benson721, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response