Вы находитесь на странице: 1из 9

PrecisionID Code 128 Barcode Font User Manual

Notice: When you use this product you agree to the End User License Agreement (EULA). The EULA is
provided as a file in the package for this product. To view the license online please visit
www.!recision"#.com$licenses$
Limitations of the demo version: The demo version of this product may %e used for evaluation purposes
only. "n the demo version the num%er & and the characters ' ( and ) contain the demo watermark. All
other characters and sym%ols are e*actly the same as the purchased version. "f you are using the demo
version and you would like to order please visit+ http+$$www.precisionid.com$
,ode -./ (ym%ology 0verview .................................................................................................................... -
!roduct 0verview ........................................................................................................................................... -
"nstallation ...................................................................................................................................................... .
1icrosoft Windows .................................................................................................................................... .
1acintosh 0( ) ......................................................................................................................................... .
0ther 0perating (ystems ........................................................................................................................... .
Using the 2onts to ,reate 3ar ,odes ............................................................................................................. .
Tutorials for (pecific Applications ................................................................................................................ .
1icrosoft Access ........................................................................................................................................ .
1icrosoft E*cel .......................................................................................................................................... 4
1icrosoft Word 1ail51erge ...................................................................................................................... 6
,rystal 7eports ........................................................................................................................................... 8
"nformation for (pecific "mplementations ..................................................................................................... 9
,reating ,heck #igits in 0ther Applications ............................................................................................ 9
!rinting Te*t 3elow the 3arcode ............................................................................................................... 9
U,,$EA:5-./ 3arcodes ........................................................................................................................... 9
U(!( EA:-./ 3arcodes ........................................................................................................................... &
(pecifications ................................................................................................................................................. &
2ont !oint (i;es and ) #imension (:arrow 3ar Width) ........................................................................... &
2ont :ames and 3ar ,ode <eight .............................................................................................................. &
The ,ode -./ ,haracter ,hart ....................................................................................................................... &
Code 128 Symbology Overvie
,ode -./ is also referred to as U,,5-./ EA:5-./ or U,,$EA: -./. ,ode -./ can encode uppercase
and lowercase letters num%ers special characters and functions such as ta%s and returns. ,ode-./
re=uires that a 10# ->4 check digit %e included in the %arcode %efore the stop digit for the scanner to
read it. All %arcodes re=uire start and stop characters.
Product Overvie
,ode -./ is a more comple* linear %arcode type than ,ode 4 of ? %ecause it re=uires a check digit and
contains 4 character sets with special switch functions. !recision"# 2ont 2ormatting ,omponents @ are
provided with this package to simplify this process and make printing %arcodes with our fonts an easy
task. The !recision"# 2ont 2ormatting ,omponents @ include a ,rystal 7eports U2L 1icrosoft A3A
module for E*cel and Access and Aisual 3asic source code which may also %e used as a guide for
conversion to other languages. This package also provides working e*amples for Word Access E*cel
and ,rystal 7eports.
Installation
Microsoft Windows
#ecompress the fonts in the supplied B"! file with a decompression utility such as Win;ip. 0ur fonts are
compati%le with all 4. %it versions of Windows. We recommend using the supplied Setup.exe file to
install the fonts automatically in Windows. "f you wish to manually install the fonts in Windows open
,ontrol !anel and choose 2ontsC then choose "nstall :ew 2ont and %rowse to the folder that contains the
fonts with the TT2 e*tension you e*tracted from the ;ip file.
Macintosh OS X
0ur fonts are compati%le with all versions of 1acintosh 0( Aersion ->.- and greater (0()). #ecompress
the fonts in the supplied B"! file with a decompression utility such as (tuffit E*pander. #rag the files with
the TT2 e*tension to the Li%rary$2onts folder of your hard drive. To activate the fonts restart the
applicationC some applications may re=uire a restart of the computer.
Other Operating Systems
We supply Windows TrueType (TT2) fonts as well as 3inary (!23) and A(,"" (!2A) versions of
!ost(cript fonts. ,onsult the documentation for your operating system a%out instructions and which font
to install.
Using t!e Fonts to Create Bar Codes
When creating %arcodes with our fonts we recommend using the !recision"# 2ont 2ormatting
,omponents @ which automatically calculate the re=uired (tart (top and 10# ->4 check characters
and simply return the te*t that is formatted to the %arcode font. When this te*t is printed with our %arcode
font a correct %arcode is created.
To calculate the check digit manually we suggest following the Aisual 3asic source code we provide.
This code is located in the E*amplesDA3 1odule folder of the package.
"utorials #or S$eci#ic %$$lications
The results for the following tutorials are saved in the e*amples folder of the product ;ip file. We
encourage you to refer to the e*amples provided in this folder.
Microsoft Access
To create a %arcode in a 1icrosoft Access report+
-. 7un the (etup program to install the fonts and Access E*ample file.
.. 3efore we can create %arcodes in Access we must import the re=uired module. ,hoose 1odules E
"mport and select the Access E*ample.md% file which will %e located in the !rogram
2ilesD!recision "# ,ode -./ 2ont !ackage folder.
4. ,hoose the module to import from the other data%aseC this module should %e named
!recision"#F,-./F1odule. After it is properly imported it will appear as one of the modules in
the data%ase.
6. 0pen a report in design view and add a te*t %o* to your report. The te*t %o* will %e modified to
contain a %arcode.
8. 7ight click on the te*t %o* and choose properties.
9. !lace the formula G!recision"#F,-./AUT0(HTa%le-.2ield-I) in the control source property of
the te*t %o* where Ta%le- is the ta%le and 2ield- is the field that contains the data you want to
%arcode.
&. 7un the report. Jou should see that the formula changed the data from the data%ase and appended
additional characters at the %eginning and ending of the te*t. Jou may notice that the num%ers
from the data are compressed into other characters this is normal when you are using ,ode -./
Auto and the %arcode contains 6 or more consecutive num%er characters.
/. 0pen a report in design view select the te*t %o* and choose one of the !recision"# fonts such as
!recision"# ,-./ T>/ and choose -. for the point si;e of the font. Jou must select the
appropriate font for the formula you are using. 2or e*ample if you have a formula for a ,ode -./
%arcode you must select the ,ode -./ 2ont.
?. (i;e the te*t %o* so it is large enough to contain the entire %arcode. Jou will need to adKust %oth
the height and width. 3e sure to leave some e*tra space to the right and left of the %arcode on the
report. 'enerally you need a%out 4 times the space to the left and right of the %arcode as the
thickest %ar in the code -./ %arcode.
->. (ave and run your report. Jou should see the %arcode appear in the te*t %o*.
Microsoft xce!
-. :0TE+ the !recision"# ,-./ T>6 font is formatted specifically for use in 1icrosoft E*cel. 0ther
fonts may work %ut may not format properly in the cells.
.. "n this e*ample we will create a %arcode in cell "# using the data from cell A# for the %arcode.
4. E*tract the !recision"#F,-./F1odule.%as file from the package and place it in the L1y
#ocumentsM folder.
6. 3efore we can create %arcodes in E*cel we must import the re=uired module and change the
security setting so it will run. "n E*cel choose Tools E 1acro E (ecurity and set the security level
to 1edium. ,hoose Tools E 1acro E Aisual 3asic Editor.
8. ,hoose 2ile E "mport 2ile and select the !recision"#F,-./F1odule.%as file from the list of files.
After this module is imported it will %e visi%le in the list of modules. ,hoose 2ile E ,lose and
return to E*cel.
9. "n cell 3/ enter the formula of G!recision"#F,-./AUT0(A->) which is re=uired to format the
data to the font.
&. Jou should notice that the formula changed the data from the spreadsheet and appended additional
characters at the %eginning and ending of the te*t. Jou may notice that num%ers from the data are
compressed into other characters this is normal when you are using ,ode -./ Auto and the
%arcode contains 6 or more consecutive num%er characters.
/. With cell 3-> selected choose the !recision"# ,-./ T>6 font which is specifically formatted for
use in 1icrosoft E*cel and choose -. for the point si;e. We also recommend centering the te*t in
this cell so the %arcode will contain white space %efore and after the %arcode. Jou must select the
appropriate font for the formula you are using. 2or e*ample if you have a formula for a ,ode -./
%arcode you must use the ,ode -./ 2ont.
?. After selecting the %ar code font you should see the %arcode appear. (i;e the width of the column
so that there is some white space %efore and after the %ars of the %arcode.
->. To create an entire column of %arcodes choose Edit E ,opy with cell 3-> selected.
--. <ighlight cells you wish to add %arcodes to in column 3 and choose Edit 5 !aste. The formula will
automatically adKust for the other cells.
Microsoft Word Mai!$Merge
-. 0pen the mail merge document.
.. To create a %arcode in a Word mail5merge we must insert a merge field from a data source that
already formatted the te*t to the %arcode font. "n this e*ample we use E*cel as the data source.
The E*cel spreadsheet data source must already %e setup with %arcodes Kust like the E*cel Tutorial
in this document.
4. "n Word ,hoose Tools E Letters and 1ailings E 1ail 1erge and select the E*cel spreadsheet for
your data source. 3e sure to select the columns and range for the cells that contain the data
formatted to the %arcode font. Jou may have to go through the Word mail5merge tutorial for
assistance if you are unsure of how to connect to a data source or perform a mail5merge.
6. When connected to the data source we insert the merge field of N2ormattedTe*tO into the
document. When we choose the LAiew 1erged #ataM option we see the te*t formatted to the
%arcode font from the data source appear.
8. (elect the te*t in the merged data and choose the %recision&' ()*# +# font. 1ake the font -.
points in si;e.
(rysta! ,eports
This e*ample was created in ,rystal 7eports version /. "mplementation in other versions of ,rystal
7eports is very similar if not identical. The fonts and U2L are compati%le with ,rystal version & and
a%ove.
-. 0pen your ,rystal 7eport and switch to design mode. "n version / choose "nsert E 2ormula 2ield
or in version ? and a%ove choose 7eport E 2ormula Workshop.
.. 7ight ,lick on 2ormula 2ields and choose :ew.
4. 'ive your formula field a name in this e*ample we will name it !recision"#F3arcode-. "n
versions ? and a%ove if you are asked to use the editor or the e*pert choose Use Editor.
6. "n the 2ormula Editor choose 2unctions 5 Additional 2unctions and select the
!recision"#F,-./AUT0() function. The U.8!recision"#.dll U2L file must %e installed %efore
you can use this formula or you will receive an error. This U2L file is installed %y running the
(etup.e*e file in the font package. The U.8!recision"#.dll file is also provided in the ,rystal #LL
folder of the Bip file. To manually install it copy it to the Windows (ystem directory or the
directory where the ,rystal #LLs are located. When the U.8!recision"#.dll file is installed and
active the !recision"# formulas will appear in the 2ormula Workshop under Additional
2unctions.
8. !lace the cursor %etween the parentheses in the formula and select the field you wish to encode in
the %arcode from the 7eport 2ields area in the 2ormula Editor. A correct formula will appear
something like !recision"#F,-./AUT0 (PTa%le-.2ield-Q) where Ta%le-.2ield- is the ta%le and
field of your data%ase.
9. The ta%les and fields should %e visi%le a%ove in your data%ase connection. ,hoose (ave and ,lose.
&. 2rom the 2ield E*plorer drag the !recision"#F3arcode- 2ormula 2ield to the report.
/. ,hoose 2ile E !rint !review. Jou should see that the formula field formatted the data from the
data%ase and appended additional characters at the %eginning and ending of the te*t. Jou may
notice that the num%ers from the data are compressed into other charactersC this is normal when
you are using ,ode -./ Auto and the %arcode contains 6 or more consecutive num%er characters.
?. (witch %ack to design mode select the formula field and choose the !recision"# ,-./ T>/ font.
(et the point si;e to -. points or to the si;e appropriate for your application. Jou must select the
appropriate font for the formula you are using and the point si;e must %e large enough for the
scanner you are using (we recommend -. points).
->. (i;e the formula field so it is large enough to contain the entire %arcode. Jou will need to adKust
%oth the height and width. 3e sure to leave some e*tra space to the right and left of the %arcode on
the report. 'enerally you need a%out 4 times the space to the left and right of the %arcode as the
thickest %ar in the code -./ %arcode.
--. The %arcode should now %e visi%le when you run your report.
In#ormation #or S$eci#ic Im$lementations
(reating (hec- 'igits in Other App!ications
The easiest method of creating source code for a check digit in a custom application is to use our
!recision"#F,-./F1odule.%as module as a guide. The module was written to %e compati%le with Aisual
3asic 9 and 1icrosoft 0ffice A3A and may %e viewed with a te*t editor. This module is located in the
E*amplesDA3 1odule folder of the package.
%rinting .ext "e!ow the "arcode
<uman5reada%le or te*t fonts are not provided in this package %ecause they do not work well with ,ode
-./. "f you need to place te*t %elow the %arcode we suggest simply printing the data you are encoding in
a te*t font %elow the %arcode on your report.
/((0AN$)*# "arcodes
0ur !recision"# 2ont 2ormatting ,omponents @ allow the creation of U,,-./ and EA:-./ %arcodes
%y simply su%stituting the A(,"" .>. character for the 2:,- when in ,-./AUT0. The same data should
%e used with the ,-./TE)T function to format the te*t %elow the %arcode. "f the ,-./TE)T function
does not format the te*t properly you will need to create your own te*t %elow the %arcode %y including
the data encoded and appending in the parentheses where they are needed. Jou will then need to add in a
field on the report %elow the %arcode to include this te*t.
2or e*ample to create the U,,$EA: %arcode of (/->>) &-.468 (.-) -.4689&/ the te*t of
R/->>9864.-R.-/&9864.- would need to %e sent to the ,-./AUT0 function where R is the A(,"" .>.
character or ,hr(.>.) in A3. The te*t portion for this %arcode type must %e created as a separate field
%elow the %arcode using a te*t font.
/S%S AN)*# "arcodes
The !recision"# ,-./ -6 font when printed at -9 points creates the re=uired %ar code si;e for U(!(
EA:-./ %arcodes. The te*t at the %ottom of the %arcode must %e formatted properly and printed with our
0,75A font to meet the U(!( specification.
S$eci#ications
1ont %oint Si2es and X 'imension 3Narrow "ar Width4
0ur fonts are designed to print with precision on high resolution printers as well as low resolution printers
such as .>4 dpi thermal %arcode printers. When printing at .>4 dpi the point si;e chosen should %e a
multiple of 9. When printing at 4>> dpi the point si;e chosen should %e a multiple of 6.
1ont point si2e X 'imension (narrow %ar width)
measured in mils (-$->>> of an inch)
9 8
/ &
-. (recommended) ->
-9 -4
.> -9
.6 .>
49 4>
1ont Names and "ar (ode 5eight
The num%ers at the end of the font name are to identify the height of the font in millimeters (mm) when
printed at -. points.
1ont Name Approximate 1ont 5eight at )* points
!recision"# ,-./ >6 .-/M or >6mm (use in E*cel)
!recision"# ,-./ >/ .4>M or >/mm
!recision"# ,-./ -. .68M or -.mm
!recision"# ,-./ -6 .89M or -6mm (used for U(!( and EA: -./)
!recision"# ,-./ -/ .&>M or -/mm
!recision"# ,-./ .. .?>M or ..mm
"!e Code 128 C!aracter C!art
The fonts were created according to the chart %elow. "f you have an advanced knowledge of the ,ode -./
specifications you can use this chart to manually create your %arcodes and calculate the check digit.
Value Set_A Set_B Set_C ASCII Text
00 Space Space 00 0194
01 ! ! 01 0033 !
02 " " 02 0034 "
03 # # 03 0035 #
04 $ $ 04 0036 $
05 % % 05 0037 %
06 & & 06 0038 &
07 ' ' 07 0039 '
08 ( ( 08 0040 (
09 ) ) 09 0041 )
10 * * 10 0042 *
11 + + 11 0043 +
12 , , 12 0044 ,
13 - - 13 0045 -
14 . . 14 0046 .
15 / / 15 0047 /
16 0 0 16 0048 0
17 1 1 17 0049 1
18 2 2 18 0050 2
19 3 3 19 0051 3
20 4 4 20 0052 4
21 5 5 21 0053 5
22 6 6 22 0054 6
23 7 7 23 0055 7
24 8 8 24 0056 8
25 9 9 25 0057 9
26 : : 26 0058 :
27 ; ; 27 0059 ;
28 < < 28 0060 <
29 = = 29 0061 =
30 > > 30 0062 >
31 ? ? 31 0063 ?
32 @ @ 32 0064 @
33 A A 33 0065 A
34 B B 34 0066 B
35 C C 35 0067 C
36 D D 36 0068 D
37 E E 37 0069 E
38 F F 38 0070 F
39 G G 39 0071 G
40 H H 40 0072 H
41 I I 41 0073 I
42 J J 42 0074 J
43 K K 43 0075 K
44 L L 44 0076 L
45 M M 45 0077 M
46 N N 46 0078 N
47 O O 47 0079 O
48 P P 48 0080 P
49 Q Q 49 0081 Q
50 R R 50 0082 R
51 S S 51 0083 S
52 T T 52 0084 T
Value Set_A Set_B Set_C ASCII Text
54 V V 54 0086 V
55 W W 55 0087 W
56 X X 56 0088 X
57 Y Y 57 0089 Y
58 Z Z 58 0090 Z
59 [ [ 59 0091 [
60 \ \ 60 0092 \
61 ] ] 61 0093 ]
62 ^ ^ 62 0094 ^
63 _ _ 63 0095 _
64 nul ` 64 0096 `
65 soh a 65 0097 a
66 stx b 66 0098 b
67 etx c 67 0099 c
68 eot d 68 0100 d
69 eno e 69 0101 e
70 ack f 70 0102 f
71 bel g 71 0103 g
72 bs h 72 0104 h
73 ht i 73 0105 i
74 lf j 74 0106 j
75 vt k 75 0107 k
76 ff l 76 0108 l
77 cr m 77 0109 m
78 s0 n 78 0110 n
79 s1 o 79 0111 o
80 dle p 80 0112 p
81 dc1 q 81 0113 q
82 dc2 r 82 0114 r
83 dc3 s 83 0115 s
84 dc4 t 84 0116 t
85 nak u 85 0117 u
86 syn v 86 0118 v
87 etb w 87 0119 w
88 can x 88 0120 *
89 em y 89 0121 y
90 sub z 90 0122 ;
91 esc { 91 0123 P
92 fs | 92 0124 S
93 gs } 93 0125 Q
94 rs ~ 94 0126 T
95 us del 95 0195 U
96 Fn 3 Fn 3 96 0196 V
97 Fn 2 Fn 2 97 0197 W
98 Shift Shift 98 0198 X
99 code C code C 99 0199 Y
100 code B Fn 4 code B 0200 Z
101 Fn 4 code A code A 0201 [
102 Fn 1 Fn 1 Fn 1 0202 R
103 Start A Start A Start A 0203 \
104 Start B Start B Start B 0204 ]
105 Start C Start C Start C 0205 ^
Stop Stop Stop 0206
_
` ,opyright .>>8 !recision"#.com

Вам также может понравиться