|
You maybe interested: |
Barcode |
Username Dbcreator Diskadmin Processadmi,
Working with Multiple Scenes in Objectiv,
Application Details: DVD-Video and DVD-A,
DOOR CONTACTS in Software Creation PDF41,
Vulnerabilities in Software Generator Qu,
Simple diagram of a Van de Graaff genera,
Part II Designing Types in Visual Studio,
CMDT 2008 in Objective-C Generation Quic,
dot net qr code library: Lesson 4 in .NE,
.net barcode library: much end users can,
how to print barcode in asp.net c#: PART,
create barcode in excel 2013 free: Erase,
zebra print barcode vb.net: Dan Bricklin,
create barcode in asp.net c#: IN DEPTH: ,
vb.net barcode font: Error: syntax error,
how to generate barcode in asp.net using,
generate barcode c# free: Home System in,
java aztec barcode library: C Imaging in,
asp net barcode printing example: Day 13,
active barcode excel 2010 download: Thre,
asp.net barcode scanning: Enter a Functi,
zxing.qrcode.qrcodewriter c#: Cold Backu,
barcode in vb.net 2005: Gain versus freq,
vb.net print barcode free: F15kr23 in C#,
java aztec barcode library: Fixed-Length,
free barcode font excel mac: ATM Testing,
barcode printing in vb net: CAREERS FOR ,
c# qr code generator dll: Site A Site B ,
barcode in crystal report: Note in Font ,
asp.net c# qr code generator: FIGURE 6-4
|
Java Code 93 Generator generate, create barcode Code 93 images in Java application
Generate, Create, Print, Draw Code 93 barcode in Java projects
- Easy to generate Code 93 barcodes in Java Class, J2EE applications
- Simple to redistribute Java Code 93 barcode library. No registration key. No activation code.
- Generating high quality Code-93 Bar Code images in GIF, JPEG, & EPS formats
- Generate Code-93 barcodes in Jasper Reports, iReport & Eclipse BIRT
- Completely developed with Java source code
- Mature Code-93 barcode generation Java library used by 2000+ clients
Index
Java Barcode Code 93 Generator Introduction
Java Barcode is a Java barcode generator which generates high quality 1D (linear) and 2D (matrix) barcodes in Java, Jasper Reports, iReport, and Eclipse BIRT projects.
Code-93 Introduction
Code 93 is a barcode symbology designed in 1982 by Intermec to provide a higher density and data security enhancement to Code 39. It is an alphanumeric, variable length symbology. Code 93 is used primarily by Canada Post to encode supplementary delivery information. Every symbol includes two check characters.
Java Code-93 Generator - Valid Data Scope
Java Code 93 Generator encodes:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
- uppercase letters (A through Z)
- - (Dash), . (Point), $ (Dollar), / (Slash), + (Plus), % (Percentage), (Space)
Java Code 93 Barcode Generation FAQ?
-
// Create Java Code93 object
Code93 barcode = new Code93();
// Set Code93 data text to encode
barcode.setData("CODE93-IN-JAVA");
// Generate Code93 barcode & print into Graphics2D object
barcode.drawBarcode("Java Graphics2D object");
// Generate Code93 barcode & encode into GIF format
barcode.drawBarcode("C://barcode-code93.gif");
// Generate Code93 barcode & encode into JPEG format
barcode.drawBarcode("C://barcode-code93.jpg");
How to generate & encode Code-93 barcodes to EPS?
// Create Java Code93 object
Code93 barcode = new Code93();
// Set Code93 data text to encode
barcode.setData("CREATE-CODE93-IN-EPS");
// Generate Code93 barcode & encode into EPS
barcode.drawBarcode2EPS("C://barcode-code93.eps");
How to create & encode Code-93 image in HTML or JSP pages?
- Under demo package, copy barcode folder and its contents to your tomcat.
- Start tomcat, navigate to http://YourDomain:Port/barcode/barcode?DATA=0123456789&TYPE=code93
- To create bar code images in html or jsp pages, you can insert a image tag (img) into your page.
For example,
<img src="http://YourDomain:Port/barcode/barcode?DATA=0123456789&TYPE=code93"/>
How to create & print barcode Code-93 image in Java Servlet class?
import com.onbarcode.barcode.AbstractBarcode;
import com.onbarcode.barcode.Code93;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
public class BarcodeServlet extends HttpServlet
{
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException
{
try {
Code93 barcode = new Code93();
barcode.setData("CREATE-CODE93-IN-JAVA-SERVLET");
ServletOutputStream servletoutputstream = response.getOutputStream();
response.setContentType("image/jpeg");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
// Generate Code-93 barcode & output to ServletOutputStream
barcode.drawBarcode(servletoutputstream);
} catch (Exception e) {
throw new ServletException(e);
}
}
}
- How to generate Code-93 barcode image in Jasper Reports?
Complete Guide for Barcode Generation in Jasper Reports
- How to generate Code-93 barcode image in iReport?
Complete Guide for Barcode Generation in iReport
- How to generate Code-93 barcode image in Eclipse BIRT?
You can stream barcodes into your BIRT reports using Java Barcode Generator.
However we recommend you use our BIRT Barcode Generator Plugin to
generate and print Code 93 barcodes in your BIRT reports.
- How to set generated Code-93 barcode image width and height?
1) You can set barcode image width and height through properties barcodeWidth and barcodeHeight values.
or
2) You can set X (bar module width) and Y (bar module height) values
Java Code 93 Generator - Property Settings
Java Code 93 Generator in Java Class: com.onbarcode.barcode.Code93
Category |
Properties |
Value |
Comments |
Basic
|
Property: data
URL: DATA
|
Type: String
Default: ""
|
Barcode value to encode
Code 93 Valid Data Char Set:
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
- A - Z (Uppercase letters)
- - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus)
|
Property: addCheckSum
iReport & URL: ADD-CHECK-SUM
|
Type: boolean
Default: false
|
addCheckSum property is not applied here. Check character "C" and "K" will always be applied. |
|
Barcode Size Related |
Property: autoResize
iReport & URL: AUTO-RESIZE
|
Type: boolean
Default: false
|
Auto resize the generated barcode image
|
Property: barAlignment
iReport & URL: BAR-ALIGNMENT
|
Type: int
Default: 1 (center)
|
Barcode horizontal alignment inside the image. 0: left, 1: center, 2: right. |
Property: uom
iReport & URL: UOM
|
Type: int
Default: 0 (pixel)
|
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm.
|
Property: X
iReport & URL: X
|
Type: float
Default: 1
|
Width of barcode bar module (narrow bar), default is 1 pixel |
Property: Y
iReport & URL: Y
|
Type: float
Default: 30
|
Height of barcode bar module, default is 30 pixel |
Property: barcodeWidth
iReport & URL: BARCODE-WIDTH
|
Type: float
Default: 0
|
Barcode image width.
If barcodeWidth setting is smaller than the barcode required minimum width, the library will automatically reset to barcode minimum width. |
Property: barcodeHeight
iReport & URL: BARCODE-HEIGHT
|
Type: float
Default: 0
|
Barcode image height.
If barcodeHeight setting is smaller than the barcode required minimum height, the library will automatically reset to barcode minimum height. |
Property: leftMargin
iReport & URL: LEFT-MARGIN
|
Type: float
Default: 0
|
Barcode image left margin size. |
Property: rightMargin
iReport & URL: RIGHT-MARGIN
|
Type: float
Default: 0
|
Barcode image right margin size. |
Property: topMargin
iReport & URL: TOP-MARGIN
|
Type: float
Default: 0
|
Barcode image top margin size. |
Property: bottomMargin
iReport & URL: BOTTOM-MARGIN
|
Type: float
Default: 0
|
Barcode image bottom margin size. |
Property: resolution
iReport & URL: RESOLUTION
|
Type: int
Default: 72
|
Barcode image resolution in DPI (Dots per inch). |
Property: rotate
iReport & URL: ROTATE
|
Type: int
Default: 0 (IBarcode.ROTATE_0)
|
Valid values:
- 0 (IBarcode.ROTATE_0)
- 1 (IBarcode.ROTATE_90)
- 2 (IBarcode.ROTATE_180)
- 3 (IBarcode.ROTATE_270)
|
|
Barcode Colors |
Property: backColor
iReport & URL: BACK-COLOR
|
Type: Color
Default: white
|
Barcode image background color |
Property: foreColor
iReport & URL: FORE-COLOR
|
Type: Color
Default: black
|
Barcode image foreground color
|
|
Font Style |
Property: showText
iReport & URL: SHOW-TEXT
|
Type: boolean
Default: true
|
If true, display barcode data text under the barcode, otherwise do not display. |
Property: textFont
iReport & URL: TEXT-FONT
|
Type: Font
Default: new Font("Arial", Font.PLAIN, 11)
|
Barcode text font style.
In Java Servlet web streaming, using the url paramter in the following format:
&TEXT-FONT=Arial|bold|9
|
Property: textMargin
iReport & URL: TEXT-MARGIN
|
Type: float
Default: 6
|
Space between barcode and barcode data text, default is 6 pixel |
Property: textColor
iReport & URL: TEXT-COLOR
|
Type: Color
Default: black
|
Barcode text color
|
|
Methods |
// generate barcode and output to OutputStream object
public boolean drawBarcode(OutputStream outputStream) throws Exception
// generate barcode into a new BufferedImage object
public BufferedImage drawBarcode() throws Exception
/*
Use this method to generate barcode, and save into gif or jpeg files
1. to save into gif file, filename ends with ".gif", like "c:\\barcode.gif"
2. to save into jpeg file, filename ends with ".jpg", like "c:\\barcode.jpg"
*/
public byte[] drawBarcodeToBytes() throws Exception
public boolean drawBarcode(String imageFile) throws Exception
// Generate barcode and save into EPS file, the filename must ends with ".eps"
public void drawBarcode2EPS(String filename) throws Exception
// Generate barcode on Graphics2D object within certain area
public void drawBarcode(Graphics2D g, Rectangle2D rectangle) throws Exception
|
All Java Barcode Generator Supporting Bar Code Symbology Types
|