You are on page 1of 56

2014

GoDEX EZio DLL User


Manual
Control GoDEX printer by programming
This manual will describe how to use EZio DLL to control GoDEX Printer.
Through simple examples, you will learn how to set up the printer parameters,
print text, images and barcodes

V1.0.0.9
GoDEX
2014/9/12
GoDEX EZio DLL User Manual

Contents
1 Overview ................................................................................................................ 3
2 Function List .......................................................................................................... 4
3 Function Parameter Description ............................................................................ 7
3.1 openport .................................................................................................... 7
3.2 OpenDriver ................................................................................................. 7
3.3 FindFirstUSB ............................................................................................... 7
3.4 FindNextUSB .............................................................................................. 8
3.5 OpenUSB .................................................................................................... 8
3.6 FindFirstNet ................................................................................................ 8
3.7 FindNextNet ............................................................................................... 8
3.8 OpenNet ..................................................................................................... 9
3.9 setbaudrate ................................................................................................ 9
3.10 closeport .................................................................................................... 9
3.11 setup ........................................................................................................ 10
3.12 sendcommand ......................................................................................... 10
3.13 sendbuf .................................................................................................... 11
3.14 RcvBuf ...................................................................................................... 11
3.15 intloadimage ............................................................................................ 11
3.16 extloadimage............................................................................................ 12
3.17 downloadimage ....................................................................................... 12
3.18 putimage .................................................................................................. 13
3.19 putimage_Halftone .................................................................................. 14
3.20 ecTextOut ................................................................................................. 14
3.21 ecTextOutW.............................................................................................. 15
3.22 ecTextOutR ............................................................................................... 16
3.23 ecTextOutRW ........................................................................................... 17
3.24 ecTextOutFine .......................................................................................... 17
3.25 ecTextOutFineW ....................................................................................... 19
3.26 ecTextDownLoad ...................................................................................... 21
3.27 ecTextDownLoadW .................................................................................. 22
3.28 Bar ............................................................................................................ 23
3.29 Bar_S ........................................................................................................ 24
3.30 Bar_GS1DataBar....................................................................................... 25
3.31 Bar_GS1DataBar_S ................................................................................... 26
3.32 Bar_PDF417.............................................................................................. 27
3.33 Bar_PDF417_S .......................................................................................... 28

1
GoDEX EZio DLL User Manual

3.34 Bar_MicroPDF417 .................................................................................... 29


3.35 Bar_MicroPDF417_S ................................................................................ 30
3.36 Bar_Maxicode .......................................................................................... 31
3.37 Bar_Maxicode_S ...................................................................................... 32
3.38 Bar_DataMatrix ........................................................................................ 33
3.39 Bar_DataMatrix_S .................................................................................... 34
3.40 Bar_QRcode ............................................................................................. 35
3.41 Bar_QRcode_S ......................................................................................... 36
3.42 Bar_Aztec ................................................................................................. 37
3.43 Bar_Aztec_S ............................................................................................. 38
3.44 InternalFont_TextOut ............................................................................... 39
3.45 InternalFont_TextOut_S ........................................................................... 39
3.46 DownloadFont_TextOut ........................................................................... 41
3.47 DownloadFont_TextOut_S ....................................................................... 41
3.48 TrueTypeFont_TextOut ............................................................................. 43
3.49 TrueTypeFont_TextOut_S ......................................................................... 44
3.50 DrawHorLine ............................................................................................ 45
3.51 DrawVerLine ............................................................................................. 45
3.52 FillRec ....................................................................................................... 46
3.53 DrawRec ................................................................................................... 46
3.54 DrawOblique ............................................................................................ 47
3.55 DrawEllipse............................................................................................... 47
3.56 DrawRoundRec ......................................................................................... 48
3.57 DrawTriangle ............................................................................................ 49
3.58 DrawDiamond .......................................................................................... 49
3.59 GetDllVersion ........................................................................................... 50
4. Programming Guide ............................................................................................. 51
4.1 C# Programming ...................................................................................... 52
4.2 VB.NET Programming ............................................................................ 52
4.3 BCB6 Programming................................................................................. 52
4.4 Delphi Programming ................................................................................ 53
4.5 VC (MFC) Programming ......................................................................... 53
4.6 Java Programming ................................................................................... 53
Reference 1 (1D Barcode Type)................................................................................... 54
Reference 2 (Internal Font Type) ................................................................................. 55

2
GoDEX EZio DLL User Manual

1 Overview
EZio DLL is a dynamic link library provided by GoDEX. Program developers can use
this component to develop the printer control program on Microsoft Windows
operating systems. EZio DLL provides 32-bit and 64-bit versions, You can set up your
development environment by using a different DLL. This component is recommended
over Windows XP operating system, the latest version supports to Windows 8.

EZio DLL provides the control function of USB, COM, LPT, Driver, network and so
on. Before the start of the printer controlling, you must call openport(), OpenUsb(),
OpenNet() or OpenDriver() to establish communication between the program and the
printer. After setting or printing is complete, you must call closeport () function to end
the connection between the program and the printer.

You can use sendcommand () or sendbuf () function to send commands or data to


GoDEX printer. You can use RcvBuf () function to get data which the printer sent.
You must use EZPL GoDEX printer language to control the printer. If you need more
advanced control method, you can go to the official website
(http://www.godexintl.com/global/download/downloads/list/Manuals) to download
GoDEX EZPL Programming Manual.

For example: The EZPL instruction of printing the self-test page is ~ V. If you want to
print it by programming, you must send sendcommand ("~ V") in the program. You
can use ecTextOut() related functions to print text, use putimage() function to print
images, and use Bar() related functions to print barcodes. Finally, it must be noted that
EZPL when printing must follow one rule : Anything printed ^ L and E must be
surrounded, and if you do not have instructions printed outside.

openport(6);
sendcommand(“^L”);
:
sendcommand(EZPL Command);
:
sendcommand(“E”);
closeport();

3
GoDEX EZio DLL User Manual

2 Function List
NO. Command Description
1 openport Open serial ,printer or USB port
Using the name of installed printer driver to
2 OpenDriver
open the specific printer.
3 FindFirstUSB Find the first USB ID
Find the next USB ID. This can be used to
4 FindNextUSB enumerate all the USB ID of the connected
printers until return false.
Using USB ID to open the specific printer
5 OpenUsb
connected to USB
6 FindFirstNet Find the first IP address and port
Find the next IP address and port. This can be
7 FindNextNet used to enumerate all the IP address and port of
the connected printers until return false.
Using IP address and port to open the specific
8 OpenNet
printer connected to network
9 setbaudrate Set the baud rate of host
10 closeport Close the opened port.
11 setup Set label size, darkness and speed of printer.
12 sendcommand Send EZPL command
13 sendbuf Send a block of data to printer
14 RcvBuf Read a packet from the opened port
Download image (binary image of PCX or
15 intloadimage
BMP) to internal memory of printer.
Download image (binary image of PCX or
16 extloadimage
BMP) to external memory of printer.
Download multi-tone image (format BMP and
JPG) with orientation settings as a bitmap to be
17 downloadimage
recalled by ^Y command. Halftone will be
applied to the image.
Printing multi-tone image (format BMP and
18 putimage JPG) with orientation settings. Halftone
(Cluster Dithering Only) will be applied to the

4
GoDEX EZio DLL User Manual

image.
Printing multi-tone image (format BMP and
19 putimage_Halftone JPG) with orientation settings. Halftone will be
applied to the image.
20 ecTextOut Printing the TrueType fonts directly.
21 ecTextOutW Printing the TrueType fonts directly. (Unicode)
Printing the TrueType fonts with orientation
22 ecTextOutR
settings
Printing the TrueType fonts with orientation
23 ecTextOutRW
settings (Unicode)
Printing the TrueType fonts with orientation,
24 ecTextOutFine weight, italic, underline, strikeout, and inverse
settings.
Printing the TrueType fonts with orientation,
25 ecTextOutFineW weight, italic, underline, strikeout, and inverse
settings (Unicode)
Download the TrueType fonts with orientation
26 ecTextDownLoad settings as a bitmap to be recalled by ^Y
command
Download the TrueType fonts with orientation
27 ecTextDownLoadW settings as a bitmap to be recalled by ^Y
command (Unicode)
28 Bar Print 1D Barcode
29 Bar_S Print 1D Barcode (Simple Mode)
30 Bar_GS1DataBar Print GS1 DataBar
31 Bar_GS1DataBar_S Print GS1 DataBar (Simple Mode)
32 Bar_PDF417 Print PDF 417
33 Bar_PDF417_S Print PDF 417 (Simple Mode)
34 Bar_MicroPDF417 Print Micro PDF 417
35 Bar_MicroPDF417_S Print Micro PDF 417 (Simple Mode)
36 Bar_Maxicode Print Maxicode
37 Bar_Maxicode_S Print Maxicode (Simple Mode)
38 Bar_DataMatrix Print Data Matrix Code
39 Bar_DataMatrix_S Print Data Matrix Code (Simple Mode)
40 Bar_QRcode Print QR Code
41 Bar_QRcode_S Print QR Code(Simple Mode)
42 Bar_Aztec Print Aztec
5
GoDEX EZio DLL User Manual

43 Bar_Aztec_S Print Aztec (Simple Mode)


Print Internal Font & Asia Font
44 InternalFont_TextOut
(EZPL A Command)
Print Internal Font & Asia Font
45 InternalFont_TextOut_S
(EZPL A Command, Simple Mode)
Print with downloaded character sets (EZPL V
46 DownloadFont_TextOut
Command)
Print with downloaded character sets
47 DownloadFont_TextOut_S
(EZPL V Command, Simple Mode)
Print with downloaded character sets
48 TrueTypeFont_TextOut
(EZPL AT Command)
Print with downloaded character sets
49 TrueTypeFont_TextOut_S
(EZPL AT Command, Simple Mode)
50 DrawHorLine Draw horizontal line
51 DrawVerLine Draw vertical line
52 FillRec Draw Filled Rectangle
53 DrawRec Draw Rectangle
54 DrawOblique Draw Oblique line
55 DrawEllipse Draw Ellipse
56 DrawRoundRec Draw rounded box
57 DrawTriangle Draw Triangle
58 DrawDiamond Draw diamond
59 GetDllVersion Read the information of this DLL

6
GoDEX EZio DLL User Manual

3 Function Parameter Description


3.1 openport(PortID)
Description Select the output port
PortID
Type : (char *)
Output port ref.
“0” = LPT1
“1” = COM1
Parameters
“2” = COM2
“3” = COM3
“4” = COM4
“5” = LPT2
“6” = USB
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.2 OpenDriver(DriverName)
Description Using the name of printer driver to open the specific printer
DriverName
Parameters Type : (char *)
The input reference containing the name of printer driver
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.3 FindFirstUSB(UsbID)
Description Find the first usb ID
UsbID
Parameters Type : (char *)
The output reference containing found USB ID
1 = (integer) OK
Return Value
0 = (integer) FAIL

7
GoDEX EZio DLL User Manual

3.4 FindNextUSB(UsbID)
Find the next USB ID. This can be used to enumerate all the USB
Description
ID of the connected printers until return false
UsbID
Parameters Type : (char *)
the output reference containing found USB ID
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.5 OpenUSB(UsbID)
Description Using USBID to open the specific printer
UsbID
Parameters Type : (char *)
The input reference containing USB ID
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.6 FindFirstNet(IP, Port)


Description Find the first IP address and port
IP
Type : (char *)
the output reference containing found IP
Parameters
Port
Type : (char *)
the output reference containing found Port
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.7 FindNextNet(IP, Port)


Find the next IP address and port. This can be used to enumerate all
Description
the USB ID of the connected printers until return false
IP
Type : (char *)
the output reference containing found IP
Parameters
Port
Type : (char *)
the output reference containing found Port

8
GoDEX EZio DLL User Manual

1 = (integer) OK
Return Value
0 = (integer) FAIL

3.8 OpenNet(IP, Port)


Description Using IP address and port to open the specific printer
IP
Type : (char *)
the output reference containing found IP
Parameters
Port
Type : (char *)
the output reference containing found Port
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.9 setbaudrate(Baudrate)
Description Set the baud rate of host
Baudrate
Type : Integer
Parameters
The value of baud rate from for example 4800, 9600, 19200,
38400.
Return Value None

3.10 closeport()
Description Close output ports
Parameters None
Return Value None

9
GoDEX EZio DLL User Manual

3.11 setup(height, dark, speed , mode, gap, top)


Description Setup parameters of printer
height
Type : Integer
Label size setting (in mm)
dark
Type : Integer
Darkness (0~19)
speed
Type : Integer
Printing speed (2~7)
mode
Parameters Type : Integer
Label mode
0: Label with gap
1: Plain paper
2: Black mark label
gap
Type : Integer
Label gap (in mm)
top
Type : Integer
black top for black mark label
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.12 sendcommand(command)
Description Send EZPL command to printer
command
Parameters Type : (char *)
Any EZPL command
1 = (integer) OK
Return Value
0 = (integer) FAIL

10
GoDEX EZio DLL User Manual

3.13 sendbuf(Data, Len)


Description Send a packet via the opened port.
Data
Type : (char *)
The packet to send
Parameters
Len
Type : Integer
The length of the packet to send
Return Value Return the length of data sent out. 0 means no data sent out.

3.14 RcvBuf(Buf, Len)


Description Read a packet from the opened port.
Buf
Type : (unsigned char *)
The return packet
Parameters
Len
Type : Integer
The maximum length to receive
Return Value Return the length of received data.

3.15 intloadimage(Filename, ID_Name, Image_Type)


Description Upload the image file to printer’s internal memory
Filename
Type : (char *)
the file name of the image file
ID_Name
Type : (char *)
The name to stand for the image file to be recalled
Parameters
by Y command.
Image_Type
Type : (char *)
image file type
pcx : for .pcx image file
bmp : for .bmp image file
1 = (integer) OK
Return Value
0 = (integer) FAIL

11
GoDEX EZio DLL User Manual

3.16 extloadimage(Filename, ID_Name, Image_Type)


Description Upload the image file to printer’s external memory
Filename
Type : (char *)
the file name of the image file
ID_Name
Type : (char *)
The name to stand for the image file to be recalled
Parameters
by Y command.
Image_Type
Type : (char *)
image file type
pcx : for .pcx image file
bmp : for .bmp image file
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.17 downloadimage(Filename, Degree, ID_Name)


Upload multi-tone image (format BMP and JPG) with orientation
Description settings as a bitmap to be recalled by ^Y command. Halftone will be
applied to the image.
Filename
Type : (char *)
The file name of the image support BMP and JPG file type.
Degree
Type : Integer
Parameters 0 : no rotation
90 : rotate 90 degree ID_Name
ID_Name
Type : (char *)
ID name to stand for the downloaded image file to be recalled
by Y command.
1 = (integer) OK
Return Value
0 = (integer) FAIL

12
GoDEX EZio DLL User Manual

3.18 putimage(PosX, PosY, Filename, Degree)


Printing multi-tone image (format BMP and JPG) directly.
Description
Halftone (Cluster Dithering Only) will be applied to the image.
PosX
Type : Integer
Left-upper Hori. pos. (dots).
PosY
Type : Integer
Left-upper Vert. pos. (dots).
Parameters Filename
Type : (char *)
The file name of the image support BMP and JPG file type.
Degree
Type : Integer
0 : no rotation
90 : rotate 90 degree
1 = (integer) OK
Return Value
0 = (integer) FAIL

13
GoDEX EZio DLL User Manual

3.19 putimage_Halftone(PosX, PosY, Filename, Degree, Halftone)


Printing multi-tone image (format BMP and JPG) directly.
Description
Halftone will be applied to the image.
PosX
Type : Integer
Left-upper Hori. pos. (dots).
PosY
Type : Integer
Left-upper Vert. pos. (dots).
Filename
Type : (char *)
The file name of the image support BMP and JPG file type.
Parameters Degree
Type : Integer
0 : no rotation
90 : rotate 90 degree
Halftone
Type : Integer
0 : None
1 : Cluster Dithering
2 : Dispersed Dithering
3 : Diffusion Dithering
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.20 ecTextOut(PosX , PosY, Height, FontName, Data)


Printing the TrueType fonts with orientation, weight, italic,
Description
underline, strikeout, and inverse settings.
PosX
Type : Integer
Left-upper Hori. pos. (dots)
PosY
Parameters Type : Integer
Left-upper Vert. pos. (dots)
Height
Type : Integer
Height of the text

14
GoDEX EZio DLL User Manual

FontName
Type : (char *)
Name of the fonts
Data
Type : (char *)
Data string
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.21 ecTextOutW(PosX, PosY, Height, FontName, Data, Len)


Printing the TrueType fonts with orientation, weight, italic,
Description
underline, strikeout, and inverse settings. (Unicode)
PosX
Type : Integer
Left-upper Hori. pos. (dots)
PosY
Type : Integer
Left-upper Vert. pos. (dots)
Height
Type : Integer
Height of the text
Parameters
FontName
Type : (char *)
Name of the fonts
Data
Type : (char *)
Data string
Len
Type : Integer
Length of data string
1 = (integer) OK
Return Value
0 = (integer) FAIL

15
GoDEX EZio DLL User Manual

3.22 ecTextOutR(PosX, PosY, Height, FontName, Data, Width, Weight , Degree)


Description Printing the TrueType fonts of WINDOWS with orientation settings
PosX
Type : Integer
Left-upper Hori. pos. (dots)
PosY
Type : Integer
Left-upper Vert. pos. (dots)
Height
Type : Integer
Height of the text
FontName
Type : (char *)
Name of the fonts
Data
Type : (char *)
Parameters Data string
Width
Type : Integer
width of the text
Weight
Type : Integer
Specifies the weight of the font in the range 0 through 1000.
For example, 400 is normal and 700 is bold.
Degree
Type : Integer
Set the rotation of the output text.
0 for degree 0,
90 for degree90,
180 for degree 180
270 for degree 270
1 = (integer) OK
Return Value
0 = (integer) FAIL

16
GoDEX EZio DLL User Manual

3.23 ecTextOutRW(PosX, PosY, Height, FontName, Data, Width, Weight, Deg, Len)
Printing the TrueType fonts of WINDOWS with orientation settings
Description
(Unicode)
PosX
Type : Integer
Left-upper Hori. pos. (dots)
PosY
Type : Integer
Left-upper Vert. pos. (dots)
Height
Type : Integer
Height of the text
FontName
Type : (char *)
Name of the fonts
Data
Type : (char *)
Data string
Width
Parameters
Type : Integer
width of the text
Weight
Type : Integer
Specifies the weight of the font in the range 0 through 1000.
For example, 400 is normal and 700 is bold.
Degree
Type : Integer
Set the rotation of the output text.
0 for degree 0,
90 for degree90,
180 for degree 180
270 for degree 270
Len
Type : Integer
Length of data string
1 = (integer) OK
Return Value
0 = (integer) FAIL
3.24 ecTextOutFine(PosX, PosY, Height, FontName, Data, Width, Weight, Degree,
17
GoDEX EZio DLL User Manual

Italic, Underline, Strikeout, Inverse)


Printing the TrueType fonts with orientation, weight, italic,
Description
underline, strikeout, and inverse settings.
PosX
Type : Integer
Left-upper Hori. pos. (dots)
PosY
Type : Integer
Left-upper Vert. pos. (dots)
Height
Type : Integer
Height of the text
FontName
Type : (char *)
Name of the fonts
Data
Type : (char *)
Data string
Width
Type : Integer
Parameters
width of the text
Weight
Type : Integer
Specifies the weight of the font in the range 0 through 1000.
For example, 400 is normal and 700 is bold.
Degree
Type : Integer
Set the rotation of the output text.
0 for degree 0,
90 for degree90,
180 for degree 180
270 for degree 270
Italic
Type : Integer
Specifies an italic font if set to TRUE(1).
Underline
Type : Integer

18
GoDEX EZio DLL User Manual

Specifies an underlined font if set to TRUE.


Strikeout
Type : Integer
Specifies a strikeout font if set to TRUE.
Inverse
Type : Integer
0:normal printout
1:inverse printout
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.25 ecTextOutFineW(PosX, PosY, Height, FontName, Data, Width, Weight,


Degree, Italic, Underline, Strikeout, Inverse, Len)
Printing the TrueType fonts with orientation, weight, italic,
Description
underline, strikeout, and inverse settings. (Unicode)
PosX
Type : Integer
Left-upper Hori. pos. (dots)
PosY
Type : Integer
Left-upper Vert. pos. (dots)
Height
Type : Integer
Height of the text
FontName
Type : (char *)
Parameters
Name of the fonts
Data
Type : (char *)
Data string
Width
Type : Integer
width of the text
Weight
Type : Integer
Specifies the weight of the font in the range 0 through 1000.
For example, 400 is normal and 700 is bold.

19
GoDEX EZio DLL User Manual

Degree
Type : Integer
Set the rotation of the output text.
0 for degree 0,
90 for degree90,
180 for degree 180
270 for degree 270
Italic
Type : Integer
Specifies an italic font if set to TRUE(1).
Underline
Type : Integer
Specifies an underlined font if set to TRUE.
Strikeout
Type : Integer
Specifies a strikeout font if set to TRUE.
Inverse
Type : Integer
0:normal printout
1:inverse printout
Len
Type : Integer
Length of data string
1 = (integer) OK
Return Value
0 = (integer) FAIL

20
GoDEX EZio DLL User Manual

3.26 ecTextDownLoad(Height, FontName, Data , Width, Weight , Deg, ID_Name)


Download the TrueType fonts with orientation settings as a bitmap
Description
to be recalled by ^Y command
Height
Type : Integer
Height of the text
FontName
Type : (char *)
Name of the fonts
Data
Type : (char *)
Data string
Width
Type : Integer
Width of the text
Weight
Parameters
Type : Integer
Specifies the weight of the font in the range 0 through 1000.
For example, 400 is normal and 700 is bold.
Deg
Type : Integer
Set the rotation of the output text.
0 for degree 0,
90 for degree90,
180 for degree 180
270 for degree 270
ID_Name
Type : (char *)
ID name of the downloaded font to be recalled by Y command
1 = (integer) OK
Return Value
0 = (integer) FAIL

21
GoDEX EZio DLL User Manual

3.27 ecTextDownLoadW(Height, FontName, Data , Width, Weight , Degree,


ID_Name, Len)
Download the TrueType fonts with orientation settings as a bitmap
Description
to be recalled by ^Y command (Unicode 文字)
Height
Type : Integer
Height of the text
FontName
Type : (char *)
Name of the fonts
Data
Type : (char *)
Data string
Width
Type : Integer
Width of the text
Weight
Type : Integer
Parameters Specifies the weight of the font in the range 0 through 1000.
For example, 400 is normal and 700 is bold.
Deg
Type : Integer
Set the rotation of the output text.
0 for degree 0,
90 for degree90,
180 for degree 180
270 for degree 270
ID_Name
Type : (char *)
ID name of the downloaded font to be recalled by Y command
Len
Type : Integer
Length of data string
1 = (integer) OK
Return Value
0 = (integer) FAIL

22
GoDEX EZio DLL User Manual

3.28 Bar(CodeType, PosX, PosY, Narrow, Wide, Height, Rotation, Readable, Data)
Description Print 1D barcode
CodeType
Type : (char *)
Barcode Type (Please refer to Reference 1)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Narrow
Type : Integer
Narrow bar from 1 ~ 10 dots (0.125 ~ 1.25 mm)
DUN 14 narrow setting from 5 ~ 8 dots;
UPC/EAN narrow setting from 2 ~ 4 dots
Wide
Type : Integer
Wide bar from 2 ~ 30 dots(0.25 ~ 0.5 mm);
Parameters (Code 39, 93, CODABAR & I 2 of 5 only)
Height
Type : Integer
Barcode height in dots (24 ~ 1200 dots)
Rotation
Type : Integer
Rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°
Readable
Type : Integer
0 – human readable off
1 – below barcode, left
2 – above barcode, left
3 – below barcode, centered
4 – above barcode, centered
5 – below right
6 – above right

23
GoDEX EZio DLL User Manual

Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.29 Bar_S(CodeType, PosX, PosY, Data)


Description Print 1D Barcode (Simple Mode)
CodeType
Type : (char *)
Barcode Type (Please refer to Reference 1)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
Parameters
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

24
GoDEX EZio DLL User Manual

3.30 Bar_GS1DataBar(CodeType, PosX, PosY, Narrow, Segment, Height, Rotation,


Readable, Data)
Description Print GS1 DataBar
CodeType
Type : (char *)
GS1 Databar Type
“0” : GS1 Databar Omnidirectional
“1” : GS1 Databar Truncated
“2” : GS1 Databar Stacked
“3” : GS1 Databar Stacked Omnidir.
“4” : GS1 Databar Limited
“5” : GS1 Databar Expanded
“6” : GS1 Databar Expanded Stacked
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Narrow
Parameters
Type : Integer
Narrow bar from 1 ~ 10 dots
Segment
Type : Integer
The width setting of data segment from 2 ~ 22
Only applied on "GS1 Databar Expanded Stacked".
Height
Type : Integer
Not available yet, please always enter "0".
Rotation
Type : Integer
Rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°
Readable
Type : Integer
Set to show human readable text
0 – human readable off;

25
GoDEX EZio DLL User Manual

1 – below barcode, left


Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.31 Bar_GS1DataBar_S(CodeType, PosX, PosY, Data)


Description Print GS1 DataBar (Simple Mode)
CodeType
Type : (char *)
GS1 Databar Type
“0” : GS1 Databar Omnidirectional
“1” : GS1 Databar Truncated
“2” : GS1 Databar Stacked
“3” : GS1 Databar Stacked Omnidir.
“4” : GS1 Databar Limited
“5” : GS1 Databar Expanded
Parameters “6” : GS1 Databar Expanded Stacked
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

26
GoDEX EZio DLL User Manual

3.32 Bar_PDF417 (PosX, PosY, Width, Height, Row, Col, ErrLevel, Len, Deg, Data)
Description Print PDF 417
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Width
Type : Integer
Width (x dimension) of the narrowest element (bar or space)
in the barcode.
Height
Type : Integer
Height (y dimension) of each barcode row in the symbol.
Row
Type : Integer
number of barcode rows, from 3 to 90. If you key in 0,
printer will count all the rows.
Parameters Col
Type : Integer
Number of barcode columns, from 1 ~ 30.
If you key in 0, printer will count the all columns
ErrLevel
Type : Integer
Error correction level: 0 ~ 8
Len
Type : Integer
Number of encoded data bytes, including carriage
returns and line feed.
Deg
Type : Integer
rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°
Data
Type : (char *)
data to be encoded

27
GoDEX EZio DLL User Manual

1 = (integer) OK
Return Value
0 = (integer) FAIL

3.33 Bar_PDF417_S (PosX, PosY, Len, Data)


Description Print PDF 417 (Simple Mode)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Parameters Len
Type : Integer
Number of encoded data bytes, including carriage
returns and line feed.
Data
Type : (char *)
data to be encoded
1 = (integer) OK
Return Value
0 = (integer) FAIL

28
GoDEX EZio DLL User Manual

3.34 Bar_MicroPDF417 (PosX, PosY, Width, Height, Mode, Len, Degree, Data)
Description Print Micro PDF 417
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Width
Type : Integer
Width (x dimension) of the narrowest element (bar or space)
in the barcode. 0~50 unit : dots
Height
Type : Integer
Height (y dimension) of each barcode row in the symbol.
0~50 unit : dots
Parameters
Mode
Type : Integer
Data mode, 0 ~ 33
Len
Type : Integer
Number of encoded data bytes, including carriage returns
and line feed. 0~400
Degree
Type : Integer
Rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°
Data
Type : (char *)
Data to be encoded
1 = (integer) OK
Return Value
0 = (integer) FAIL

29
GoDEX EZio DLL User Manual

3.35 Bar_MicroPDF417_S (PosX, PosY, Len, Data)


Description Print Micro PDF 417 (Simple Mode)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Parameters Len
Type : Integer
Number of encoded data bytes, including carriage returns
and line feed. 0~400
Data
Type : (char *)
Data to be encoded
1 = (integer) OK
Return Value
0 = (integer) FAIL

30
GoDEX EZio DLL User Manual

3.36 Bar_Maxicode (PosX, PosY, SymbolNo, SetNo, Mode, CountryCode,


PostalCode, Class, Degree, Data)
Description Print Maxicode
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
SymbolNo
Type : Integer
symbol number, in set of symbols: 1 ~ 8
SetNo
Type : Integer
number of symbols in set of symbols: 1 ~ 8 sets.
Mode
Type : Integer
mode of maxicode 2, 3, 4 or 6.
2:numeric postal code for U.S.
3:numeric postal code for non-U.S.
Parameters
4:standard symbol, secretary
6:reader program, secretary
CountryCode
Type : (char *)
3 digits country code
PostalCode
Type : (char *)
Postal code. 9 digits for US style postal code.
If there is a 5 digits zip code, 4 zeros must be padded 6 digits
alphanumeric zip code for non-US style postal code.
Class
Type : (char *)
Service class, 3 digits numeric
Degree
Type : Integer
Rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°

31
GoDEX EZio DLL User Manual

Data
Type : (char *)
Barcode data. 1 ~ 84 characters
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.37 Bar_Maxicode_S (PosX, PosY, CountryCode, PostalCode, Class, Degree, Data)


Description Print Maxicode (Simple Mode)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
CountryCode
Type : (char *)
3 digits country code
PostalCode
Type : (char *)
Postal code. 9 digits for US style postal code.
Parameters
If there is a 5 digits zip code, 4 zeros must be padded 6 digits
alphanumeric zip code for non-US style postal code.
Class
Type : (char *)
Service class, 3 digits numeric
Degree
Type : Integer
Rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°
Data
Type : (char *)
Barcode data. 1 ~ 84 characters
1 = (integer) OK
Return Value
0 = (integer) FAIL

32
GoDEX EZio DLL User Manual

3.38 Bar_DataMatrix (PosX, PosY, Enlarge, RotationR, Len, Data)


Description Print Data Matrix Code
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Enlarge
Type : Integer
Enlarge the DataMatrix Code 1~8 times
RotationR
Type : (char *)
Rotation of barcode
“0” :0° DataMatrix Code
Parameters
“1” :90° DataMatrix Code
“2” :180° DataMatrix Code
“3” :270° DataMatrix Code
“0R”:0° Rectangular DataMatrix Code
“1R”:90° Rectangular DataMatrix Code
“2R”:180° Rectangular DataMatrix Code
“3R”:270° Rectangular DataMatrix Code
Len
Type : Integer
Data length (unit: bytes)
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

33
GoDEX EZio DLL User Manual

3.39 Bar_DataMatrix_S (PosX, PosY, Len, Data)


Description Print Data Matrix Code (Simple Mode)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Parameters
Len
Type : Integer
Data length (unit: bytes)
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

34
GoDEX EZio DLL User Manual

3.40 Bar_QRcode (PosX, PosY, Mode, Type, ErrLevel, Mask, Mul, Len, Deg, Data)
Description Print QR Code
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Mode
Type : Integer
Input mode
1:Numerical data mode
2:Alpha numerical data mode
3:8-bit data mode
4:Kanji data mode
5:Mixing mode
Type
Type : Integer
Barcode type
Parameters 1:Model1 (original)
2:Model2 (enhanced)
3:Micro QR Code
ErrLevel
Type : (char *)
Error correction level
L:Low
M:Medium
Q:Medium high
H:High
Mask
Type : Integer
Masking factor (0 ~ 7 or 8 for auto).
When printing with Micro QR code, it must be set to "0"
Mul
Type : Integer
multiple (1 ~ 8)

35
GoDEX EZio DLL User Manual

Len
Type : Integer
Number of encoded data bytes, including carriage returns
and line feed.
Deg
Type : Integer
Rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.41 Bar_QRcode_S (PosX, PosY, Len, Data)


Description Print QR Code(Simple Mode)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Parameters Len
Type : Integer
Number of encoded data bytes, including carriage returns
and line feed.
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

36
GoDEX EZio DLL User Manual

3.42 Bar_Aztec (PosX, PosY, Degree, Mul, ECICs, Type, MenuSymbol, Len, Data)
Description Print Aztec
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Degree
Type : Integer
Rotation of barcode
0) 0°, 1) 90°, 2) 180°, 3) 270°
Mul
Type : Integer
1:150 dpi printers
2:200 dpi printers
3:300 dpi printers
6:600 dpi printers
ECICs
Parameters Type : (char *)
extended channel interpretation code indicator
“Y”: if data contains ECICs
“N”: if data does not contains ECICs
Type
Type : Integer
0 :default error correction level
01 ~ 99 :error correction percentage (minimum)
101 ~ 104:Compact Symbol 1 ~4 Layer
201 ~ 232:Full Symbol 1 ~ 31 Layer
300 :Rune Symbol
MenuSymbol
Type : (char *)
Menu symbol (barcode reader initialization) indicator
Accepted Values
“Y”: if this symbol is to be a menu symbol
“N”: if it is not a menu symbol

37
GoDEX EZio DLL User Manual

Len
Type : Integer
data length : maximum = 2000
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.43 Bar_Aztec_S (PosX, PosY, Len, Data)


Description Print Aztec (Simple Mode)
PosX
Type : Integer
Hori. of top-left position of barcode (unit: dots)
PosY
Type : Integer
Vert. of top-left position of barcode (unit: dot)
Parameters
Len
Type : Integer
data length : maximum = 2000
Data
Type : (char *)
Barcode data
1 = (integer) OK
Return Value
0 = (integer) FAIL

38
GoDEX EZio DLL User Manual

3.44 InternalFont_TextOut (FontType, PosX, PosY, Mul_X, Mul_Y, Gap,


RotationInverse, Data)
Description Print Internal Font & Asia Font (EZPL A Command)
FontType
Type : (char *)
Font Type (Please refer to Reference 2)
PosX
Type : Integer
Hori. of top-left position of text (unit: dots)
PosY
Type : Integer
Vert. of top-left position of text (unit: dot)
Mul_X
Type : Integer
Horizontally magnified up to 8 times as large
Mul_Y
Type : Integer
Vertically magnified up to 8 times as large
Parameters Gap
Type : Integer
Distance of the character 0 ~ 200 (unit: dot)
RotationInverse
Type : (char *)
The rotation of ASCII text from 0 to 3, the Asian text rotation
form 0 to 7
0) 0°, 1) 90°, 2) 180°, 3) 270°
4) 0°, 5) 90°, 6) 180°, 7) 270°
0~3 rotated for all characters;
4~7 rotated individually for each character
In addition, if the rotation parameter is followed with “I”,
the text will be printed in inverse font.
Data
Type : (char *)
String data
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.45 InternalFont_TextOut_S (FontType, PosX, PosY, Data)


39
GoDEX EZio DLL User Manual

Description Print Internal Font & Asia Font (EZPL A Command, Simple Mode)
FontType
Type : (char *)
Font Type
PosX
Type : Integer
Hori. of top-left position of text (unit: dots)
Parameters
PosY
Type : Integer
Vert. of top-left position of text (unit: dot)
Data
Type : (char *)
String data
1 = (integer) OK
Return Value
0 = (integer) FAIL

40
GoDEX EZio DLL User Manual

3.46 DownloadFont_TextOut (FontName, PosX, PosY, Mul_X, Mul_Y, Gap,


RotationInverse, Data)
Description Print with downloaded character sets (EZPL V Command)
FontName
Type : (char *)
The font name. From A to Z
PosX
Type : Integer
Hori. of top-left position of text (unit: dots)
PosY
Type : Integer
Vert. of top-left position of text (unit: dot)
Mul_X
Type : Integer
Horizontally magnified up to 8 times as large
Mul_Y
Type : Integer
Vertically magnified up to 8 times as large
Parameters Gap
Type : Integer
Distance of the character 0 ~ 200 (unit: dot)
RotationInverse
Type : (char *)
The rotation of ASCII text from 0 to 3, the Asian text rotation
form 0 to 7
0) 0°, 1) 90°, 2) 180°, 3) 270°
4) 0°, 5) 90°, 6) 180°, 7) 270°
0~3 rotated for all characters;
4~7 rotated individually for each character
In addition, if the rotation parameter is followed with “I”,
the text will be printed in inverse font.
Data
Type : (char *)
String data
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.47 DownloadFont_TextOut_S (FontName, PosX, PosY, Data)


41
GoDEX EZio DLL User Manual

Print with downloaded character sets (EZPL V Command, Simple


Description
Mode)
FontName
Type : (char *)
The font name. From A to Z
PosX
Type : Integer
Hori. of top-left position of text (unit: dots)
Parameters
PosY
Type : Integer
Vert. of top-left position of text (unit: dot)
Data
Type : (char *)
String data
1 = (integer) OK
Return Value
0 = (integer) FAIL

42
GoDEX EZio DLL User Manual

3.48 TrueTypeFont_TextOut (FontName, PosX, PosY, Font_W, Font_H, SpaceChar,


RotationInverse, TTFTable, WidthMode, Data)
Description Print with downloaded character sets (EZPL AT Command)
FontName
Type : (char *)
The font name. From A to Z
PosX
Type : Integer
Hori. of top-left position of text (unit: dots)
PosY
Type : Integer
Vert. of top-left position of text (unit: dot)
Font_W
Type : Integer
The width of font (8~2000 dot)
Font_H
Type : Integer
The height of font (8~2000 dot)
SpaceChar
Type : Integer
Parameters
Space between characters (0~200 dot)
RotationInverse
Type : (char *)
The rotation of ASCII text from 0 to 3, the Asian text rotation
form 0 to 7
0) 0°, 1) 90°, 2) 180°, 3) 270°
4) 0°, 5) 90°, 6) 180°, 7) 270°
0~3 rotated for all characters;
4~7 rotated individually for each character
In addition, if the rotation parameter is followed with “I”,
the text will be printed in inverse font.
TTFTable
Type : (char *)
DType
0: ASCII
A~Z: Unicode table
WidthMode

43
GoDEX EZio DLL User Manual

Type : Integer
0 : width/height Aspect Ratio mode
1 : Average width mode (refer to Further Information)
Data
Type : (char *)
String data
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.49 TrueTypeFont_TextOut_S (FontName, PosX, PosY, Data)


Print with downloaded character sets (EZPL AT Command, Simple
Description
Mode)
FontName
Type : (char *)
The font name. From A to Z
PosX
Type : Integer
Hori. of top-left position of text (unit: dots)
Parameters
PosY
Type : Integer
Vert. of top-left position of text (unit: dot)
Data
Type : (char *)
String data
1 = (integer) OK
Return Value
0 = (integer) FAIL

44
GoDEX EZio DLL User Manual

3.50 DrawHorLine (PosX, PosY, Length, Thick)


Description Draw horizontal line
PosX
Type : Integer
Hori. of top-left position of line (unit: dots)
PosY
Type : Integer
Vert. of top-left position of line (unit: dot)
Parameters
Length
Type : Integer
Length of the horizontal line (unit: dot)
Thick
Type : Integer
Line thickness (unit: dot)
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.51 DrawVerLine (PosX, PosY, Length, Thick)


Description Draw vertical line
PosX
Type : Integer
Hori. of top-left position of line (unit: dots)
PosY
Type : Integer
Vert. of top-left position of line (unit: dot)
Parameters
Length
Type : Integer
Length of the vertical line (unit: dot)
Thick
Type : Integer
Line thickness (unit: dot)
1 = (integer) OK
Return Value
0 = (integer) FAIL

45
GoDEX EZio DLL User Manual

3.52 FillRec (PosX, PosY, Rec_W, Rec_H)


Description Draw Filled Rectangle
PosX
Type : Integer
Hori. of top-left position of rectangle (unit: dots)
PosY
Type : Integer
Vert. of top-left position of rectangle (unit: dot)
Parameters
Rec_W
Type : Integer
Width of the filled rectangle (unit: dot)
Rec_H
Type : Integer
Height of the filled rectangle (unit: dot)
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.53 DrawRec (PosX, PosY, Rec_W, Rec_H, lrw, ubw)


Description Draw Rectangle
PosX
Type : Integer
Hori. of top-left position of rectangle (unit: dots)
PosY
Type : Integer
Vert. of top-left position of rectangle (unit: dot)
Rec_W
Type : Integer
Width of the rectangle (unit: dot)
Parameters
Rec_H
Type : Integer
Height of the rectangle (unit: dot)
lrw
Type : Integer
Thickness of left, right border (unit: dots)
ubw
Type : Integer
Thickness of upper bottom border (unit: dots)

46
GoDEX EZio DLL User Manual

1 = (integer) OK
Return Value
0 = (integer) FAIL

3.54 DrawOblique (PosX1, PosY1, Thick, PosX2, PosY2)


Description Draw Oblique line (EZPL Ls Command)
PosX1
Type : Integer
X position of the starting point (unit: dots)
PosY1
Type : Integer
Y position of the starting point (unit: dots)
Thick
Parameters Type : Integer
Line thickness (unit: dot)
PosX2
Type : Integer
X position of the end point (unit: dots)
PosY2
Type : Integer
Y position of the end point (unit: dots)
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.55 DrawEllipse (PosX, PosY, Ellipse_W, Ellipse_H, Thick)


Description Draw Ellipse
PosX
Type : Integer
the logical x-coordinate of the upper-left corner of the
ellipse's bounding rectangle (unit: dots)
PosY
Type : Integer
Parameters
the logical y-coordinate of the upper-left corner of the
ellipse's bounding rectangle. (unit: dots)
Ellipse_W
Type : Integer
Width of the ellipse's bounding rectangle. (unit: dots)
Ellipse_H

47
GoDEX EZio DLL User Manual

Type : Integer
Height of the ellipse's bounding rectangle. (unit: dots)
Thick
Type : Integer
Line thickness (unit: dot)
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.56 DrawRoundRec (PosX, PosY, Rec_W, Rec_H, Arc_W, Arc_H, Thick)


Description Draw rounded box
PosX
Type : Integer
the logical x-coordinate of the upper-left corner of the
rounded box 's bounding rectangle (unit: dots)
PosY
Type : Integer
the logical y-coordinate of the upper-left corner of the
rounded box 's bounding rectangle. (unit: dots)
Rec_W
Type : Integer
Width of the rounded box 's bounding rectangle. (unit: dots)
Parameters Rec_H
Type : Integer
Height of the rounded box 's bounding rectangle. (unit: dots)
Arc_W
Type : Integer
the width of the ellipse used to draw the rounded corners
Arc_H
Type : Integer
the height of the ellipse used to draw the rounded corners
Thick
Type : Integer
Line thickness (unit: dot)
1 = (integer) OK
Return Value
0 = (integer) FAIL

48
GoDEX EZio DLL User Manual

3.57 DrawTriangle (PosX1, PosY1, PosX2, PosY2, PosX3, PosY3, Thick)


Description Draw Triangle
PosX1
Type : Integer
The first vertex x-coordinate of triangle
PosY2
Type : Integer
The first vertex y-coordinate of triangle
PosX2
Type : Integer
The second vertex x-coordinate of triangle
PosY2
Parameters Type : Integer
The second vertex y-coordinate of triangle
PosX3
Type : Integer
The third vertex x-coordinate of triangle
PosY3
Type : Integer
The third vertex y-coordinate of triangle
Thick
Type : Integer
Line thickness (unit: dot)
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.58 DrawDiamond (PosX, PosY, Diamond_W, Diamond_H, Thick)


Description Draw diamond
PosX
Type : Integer
the logical x-coordinate of the upper-left corner of the
diamond 's bounding rectangle (unit: dots)
Parameters PosY
Type : Integer
the logical y-coordinate of the upper-left corner of the
diamond 's bounding rectangle. (unit: dots)
Diamond_W

49
GoDEX EZio DLL User Manual

Type : Integer
Width of the diamond 's bounding rectangle. (unit: dots)
Diamond_H
Type : Integer
Height of the diamond 's bounding rectangle. (unit: dots)
Thick
Type : Integer
Line thickness (unit: dot)
1 = (integer) OK
Return Value
0 = (integer) FAIL

3.59 GetDllVersion(Version)
Description Read the information of this Dll
Version
Parameters Type : (char **)
The output reference containing Dll Version
Return Value Return the length of the data containing Dll Version

50
GoDEX EZio DLL User Manual

4. Programming Guide
Refer to “Example” directory sample code. You can learn how to control GoDEX
printer via USB, COM, LPT, networks, and Driver. You can also learn basic text
printing, graphic printing, barcode printing and printer parameter settings.

51
GoDEX EZio DLL User Manual

4.1 C# Programming

If you want to quickly develop C# program, you can get EZio32.dll, EZioApi.cs,
GodexPrinter.cs in [EZio_Sample_C #] directory. You can add these three files to
your project and then declare the following objects in your project

GodexPrinter Printer = new GodexPrinter();

Then you can use the “Printer” object, simply controlling GoDEX printer.

4.2VB.NET Programming

If you want to quickly develop VB.NET program, you can get EZio32.dll、
EZioApi.vb、GodexPrinter.vb in [Ezio_Sample_VBNET] directory. You can add these
three files to your project and then declare the following objects in your project

Printer As GodexPrinter = New GodexPrinter()

Then you can use the “Printer” object, simply controlling GoDEX printer.

4.3 BCB6 Programming

If you want to quickly develop BCB6 program, you can get EZio32.dll、
EZio32_BCB.lib、EZio32.h、ParaDef.h、clsPrinterCommand.cpp、
clsPrinterCommand.h、clsPrinterConfig.cpp、clsPrinterConfig.h、GodexPrinter.cpp、
GodexPrinter.h in [EZio_Sample_BCB6] directory. You can add these files to your
project and then declare the following objects in your project

GodexPrinter Printer;

Then you can use the “Printer” object, simply controlling GoDEX printer.

52
GoDEX EZio DLL User Manual

4.4 Delphi Programming

If you want to quickly develop Delphi 2010 program, you can get EZio32.dll、
GodexPrinter.pas in [EZio_Sample_Delphi2010] directory. You can add these three
files to your project and then declare the following objects in your project

mPrinter: TGodexPrinter;

Then you can use the “mPrinter” object, simply controlling GoDEX printer.

4.5 VC (MFC) Programming

If you want to quickly develop VC 2008 program, you can get EZio32.dll、
EZio32_VC.lib、EZio32.h、ParaDef.h、clsPrinterCommand.cpp、clsPrinterCommand.h、
clsPrinterConfig.cpp、clsPrinterConfig.h、GodexPrinter.cpp、GodexPrinter.h in
[EZio_Sample_VC2008(MFC)] directory. You can add these three files to your
project and then declare the following objects in your project

GodexPrinter Printer;

Then you can use the “Printer” object, simply controlling GoDEX printer.

4.6 Java Programming

If you want to quickly develop Java program, you can get EZio32.dll、jna-3.5.1.jar、
GodexPrinter.java、EZioLib.java、clsPrinterConfig.java、clsPrinterCommand.java in
[EZio_Sample_Java_Luna] directory. You can add these three files to your project and
then declare the following objects in your project

GodexPrinter Printer = new GodexPrinter();

Then you can use the “Printer” object, simply controlling GoDEX printer.

53
GoDEX EZio DLL User Manual

Reference 1 (1D Barcode Type)


1D Barcode Code Type Definition

Code Type Description Code Type Description


A Code 39 STD O Codabar
A2 Code 39 STD w check P Code 93
A3 Code 39 full ASCII Q Code 128 (auto)
A4 Code 39 full ASCII w check Q2 Code 128 (subset A/B/C)
A5 Code 39 STD w check & * R UCC 128
A6 Code 39 STD w * S Post NET
B EAN 8 T UPC Interleaved 2 of 5
C EAN 8 - Add ON 2 U EAN 128
D EAN 8 - Add ON 5 V RPS 128
E EAN 13 X HIBC
F EAN 13 – Add ON 2 Y MSI 1 MOD 10
G EAN 13 – Add ON 5 Y2 MSI 2 MOD 10
H UPC A Y3 MSI 1 MOD 11 & 10
I UPC A - Add ON 2 Y4 MSI no digit check
J UPC A - Add ON 5 Z I 2 of 5 with Shipping Bearer Bars
K UPC E 1 UCC/EAN-128 K-MART
L UPC E - Add ON 2 2 UCC/EAN-128 RANDOM
M UPC E - Add ON 5 3 Telepen
N I 2 of 5 4 FIM
N2 I 2 of 5 with check digit 7 Plessey

54
GoDEX EZio DLL User Manual

Reference 2 (Internal Font Type)


Internal Font
Font Type Definition (CG Triumvirate, Code page 850)

Font Type 200 DPI 300 DPI 600 DPI


A 6 Points 4 Points 2 Points
B 8 Points 5 Points 2.5 Points
C 10 Points 6 Points 3 Points
D 12 Points 8 Points 4 Points
E 14 Points 9 Points 4.5 Points
F 18 Points 12 Points 6 Points
G 24 Points 16 Points 8 Points
H 30 Points 20 Points 10 Points
I 16 x 26 Dots 24 Points 12 Points
J - 10 x 17 Dots 10 x 17 Dots

Zn, n = 1 ~ 4 Asia font

55

You might also like