[SOLVED] Barcode 128 | Bugs, Issues and Errors | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
[SOLVED] Barcode 128
28 Nov 2017
6:47 am
Avatar
Colin
Member
Forum Posts: 32
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hello Everyone,

I am trying to print a barcode using 128 symbology.

Its a very simple code, up to 7 numerics (can sometimes be 6) followed by a TAB character. Because of the TAB character I am trying to use 128A.

I cannot get it work no matter what I do. The font is installed and the usys.ini file has been changed to put the font into both the [PRINTER] and [SCREEN] sections. When I paint the field on the component and go to the widget properties to select the font, the barcode font appears in the list but shows text (the quick brown fox jumps over the lazy dog) as the preview. The lack of preview tells me something isn’t quite right but because I know nothing of barcode128 I ignored that and moved on.

I wrote a component that takes the string to be encoded and attempts to create the string the barcode128 requires including the checkdigit.

I obviously an doing something wrong because despite hours of trying I can’t fix it.

Does anyone have any useful hints or tips, maybe even some sample code to help me out?

Thanks in advance.

29 Nov 2017
9:34 am
Avatar
TheAleph
Member
Forum Posts: 56
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

I Colin, may be the font is not installed into your local pc  in C:\windows\fonts  dir.

Usually you must see the field font as barcode 

30 Nov 2017
12:44 am
Avatar
Colin
Member
Forum Posts: 32
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

TheAleph said
I Colin, may be the font is not installed into your local pc  in C:\windows\fonts  dir.

Usually you must see the field font as barcode   

Hello TheAleph,

Thanks for your reply but the font is installed correctly. It works in Word etc.

30 Nov 2017
9:46 am
Avatar
TheAleph
Member
Forum Posts: 56
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

in my  usys.ini  file the font is defined  in [screen]  and [printer] as follow:

barcode128b=fontbc128,60,regular

fontbc128  is the name of the font as seen in c:\windows\fonts

bye

30 Nov 2017
9:49 pm
Avatar
diseli
Admin
Forum Posts: 836
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hello Colin,

This should work:

[SCREEN] & [PRINTER]
barcode128b=fontbc128,Symbol,60,regular

If you don’t set the CharacterSet to Symbol (for graphical fonts) then the barcode font is just shown/printed as a “regular” font.

Hope this helps.

Kind regards,

Daniel

01 Dec 2017
1:26 am
Avatar
Colin
Member
Forum Posts: 32
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Thanks for that Daniel. It did work.

I couldn’t find the use of ‘symbol’ anywhere in the documentation. I am using 9.06.02 (x603).

01 Dec 2017
8:48 am
Avatar
diseli
Admin
Forum Posts: 836
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Colin said
Thanks for that Daniel. It did work.

I couldn’t find the use of ‘symbol’ anywhere in the documentation. I am using 9.06.02 (x603).  

Your are welcome.

It seems that this info (along with a Barcode font example) was added to the Uniface 9.7.04 documentation:

> Uniface Reference > Configuration Settings: Initialization > [screen]
> Uniface Reference > Configuration Settings: Initialization > [printer]

Hope this helps.

Daniel

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online: Amarildo Ribeiro, Henk van der Veer
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1710

Iain Sharp: 623

Theo Neeskens: 345

gianni: 264

rogerw: 232

istiller: 201

lalitpct: 197

Knut: 179

-GHAN-: 171

Arjen van Vliet: 170

Member Stats:

Guest Posters: 3

Members: 7038

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2058

Posts: 8862

Newest Members:

Arabellaquife, ArthurEffit, RubenKip, MarinaGOVunse, Olpbtsj, Richardglums, Hellbladequife, RobertCab, Kcrdhlq, Kennethsherm

Administrators: admin: 23, Adrian Gosbell: 286, diseli: 836, Bob Maier: 3, Nico Peereboom: 65, Michael Rabone: 4, richiet: 406, JanCees: 28