Code39 is also known as 3of9 code, USD-3, and LOGMARS. ISO/IEC 16388:2007 standard defines code39 barcode. Many industries use Code39 barcode.
LOGMARS is the acronym for Logistics Applications of Automated Marking and Reading Symbols. It is a variation of code39. Military Standard MIL-STD-1189B specifies LOGMARS.
Code39 only accepts 43 valid input characters:
26 uppercase alphas (A - Z), digits (0-9), hyphen, period, space, dollar sign, slash, plus and percent.
Code39 will omit other input characters.
Here is the mapping table of Barcodesoft Code39 Barcode Font
Character | Mapping |
---|---|
space | number sign (#) |
hyphen, period, dollar sign slash, plus, percent |
unchanged |
0-9 | unchanged |
A-Z | unchanged |
Aspect Ratio | With Human Readable | Without Human Readable |
---|---|---|
XXS | Code39XXSHr | Code39XXS |
XS | Code39XSHr | Code39XS |
S | Code39SHr | Code39S |
M | Code39MHr | Code39M |
L | Code39LHr | Code39L |
XL | Code39XLHr | Code39XL |
XXL | Code39XXLHr | Code39XXL |
License | Single User | 5-User | 10-User | Site | Corporate | Developer | 5-Developer | 10-Developer | Unlimited Developer |
---|---|---|---|---|---|---|---|---|---|
Price | CAD159 | CAD299 | CAD399 | CAD599 | CAD799 | CAD999 | CAD1199 | CAD1399 | CAD1999 |
This solution is web-service based. No download needed.
No third-party software installation needed.
All you need is just Internet access.
1. Click "insert picture icon" to add a picture to your report. This picture will be a placeholder for your barcode.
2. Right click image. Select Format Graphic… Select Picture tab. Click the conditional-formula button (looks like x+2).
Set the formula’s text to the name of the formula or parameter field with the image’s URL:
Save the formula and click the OK button.
3. By manipulating parameters of Web Service URL, you can customize code39 barcode in your report.
http://barcode.barcodesoft.com/barcode.ashx?s/code39/text/24680ABC13579/w/200/h/120/quiet/10
URL above will generate a code39 barcode for text "24680ABC13579". Barcode width will be 200 pixels. Barcode height will be 120 pixels. Quiet zone will be 10 pixels.
http://barcode.barcodesoft.com/barcode.ashx?s/code39/text/ABCD1234/w/200/h/120/quiet/0
URL above will generate a code39 barcode for text "ABCD1234". Barcode width will be 200 pixels. Barcode height will be 120 pixels. No Quiet zone.
4. Without a valid token, your barcode will have a demo watermark.
To get a token, please get a license for linear barcode web service.
1. Open your crystal report. Right click Formula Fields, choose "New..." from the context menu.
Type in "Code39" in the Name textbox, then click "Use Editor".
2. From Functions List ==> Additional Functions ==> COM and .NET UFLs (u212com.dll) ==> Visual Basic UFLs, double click "BCSLinearCode39" function from Visual Basic UFLs list as shown.
3. Then type in the database field as parameter for code39 formula. And click "Save" button to save code39 formula field.
4. Drag and drop the Code39 formula field in your crystal report design view.
5. Right click Code39 formula field and choose "Format Field" from context menu. Then choose "Code39mHr" font typeface.
Click OK button. You will see code39 barcode in your report.
1. Start Microsoft® Word®.
2. Type asterisks (*) before and after your data in your Word document.
Please use number sign (#) to replace space characters in your data.
3. Highlight your data. Right click your data and choose Font from context menu. Word will popup a dialog. Please choose Code39Mhr as font.
4. Click OK button. You will get Code39 barcode in your Word document.
1. Start Microsoft® Excel® first.
If you are using Excel 2000 or 2003, click menu ===> Tools ==> Macro ===> Security. Choose Low security level.
If you are using Excel 2007 / 2010 / 2013 / 2016 / 2019, click the Microsoft Office Button.
Then click Excel Options, choose Trust Center. In the Macro Settings category, under Macro Settings, choose "Enable all macros" as shown below.
2. Press ALT + F11 to open Microsoft® Visual Basic editor.
3. From Visual Basic editor, choose menu Tools ===> References. It will popup a dialog. Click Browse button and choose cruflbcs.dll from your working folder.
Usually it's under C:\Program File (x86)\CommonFiles\Barcodesoft\Fontutil folder.
Click the checkbox beside crUFLBcs 1.0 Type Library as shown below. Then click OK button.
4. Press Ctrl+M, it will popup a dialog, choose barcodesoft.bas under C:\Program File (x86)\CommonFiles\Barcodesoft\Fontutil folder. Then click "Open".
If you don't find barcodesoft.bas, please download it from code39.
5. Close Visual Basic editor and go back to your spreadsheet. Now, you can use one of the following macros to encode data: Code39, Code39Mod43. When you have lots of data to process, you can just copy and paste the macro to the whole column and all data will be encoded in seconds.
=Code39(xxx)
Or you can copy and paste from code snippet below
Public Function Code39(strToEncode As String) As String
Dim obj As cruflBCS.CLinear
Set obj = New cruflBCS.CLinear
Code39 = obj.Code39(strToEncode)
Set obj = Nothing
End Function
Please use cell reference to replace xxx in the formulas as shown below.
6. Right click Cell B1, choose Format Cell from context menu. Then click Font to apply one of the appropriate font typefaces to the cell, such as Code39mHr. You will see Code39 barcode in your report.
1. Start Microsoft® Access® first.
If you are using Access 2000 or 2003, click menu ===> Tools ==> Macro ===> Security. Choose Low security level.
If you are using Access 2007 / 2010 / 2013 / 2016 / 2019, click the Microsoft Office Button.
Then click Access Options, choose Trust Center. In the Macro Settings category, under Macro Settings, choose "Enable all macros" as shown below.
2. Press ALT + F11 to open Microsoft® Visual Basic editor.
3. From Visual Basic editor, choose menu Tools ===> References. It will popup a dialog. Click Browse button and choose cruflbcs.dll from your working folder.
Usually it's under C:\Program File (x86)\CommonFiles\Barcodesoft\Fontutil folder.
Click the checkbox beside crUFLBcs 4.0 Type Library as shown below. Then click OK button.
4. Press Ctrl+M, it will popup a dialog, choose barcodesoft.bas under C:\Program File (x86)\CommonFiles\Barcodesoft\Fontutil folder. Then click "Open".
If you don't find barcodesoft.bas, please download it from code39.
5. Close Visual Basic and go back to your Access database. Now, create a report in Design view and type in one of the following macros in the field where you want to show code39 barcode before apply font typeface, such as Code39mHr:
=code39([data.code])
Please notice that 'data' is the Table name, 'code' is the Field name.
6. Right click the field you want to display code39 barcode. Choose Properties from context menu. Apply one of the appropriate font typefaces to the field, such as code39mHr.