IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#21071 - 01/15/09 06:23 PM showbarcode()
ldehan Offline
Junior Member

Registered: 04/17/06
Posts: 4
I'm trying to implement the following code, however the define(&BarType,integer,1) does not appear to have any effect. No matter what value I assign it, the bar code appears to remain the same and the output is not a readable barcode. I am however able to insert a barcode object successfully and read it...Any ideas?


define(&BarWidth,measure,0.011)
define(&BarHeight,measure,.19)
define(&BarType,integer,1)
setfillcolor([100,100,100,100])
showbarcode(@(¤t.line, 15,24))

Top
#21072 - 01/16/09 09:33 AM Re: showbarcode()
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Idehan,

I tried it out, and it does work for me. Changing &BarType affects which barcode is generated. Two questions:
- What barcode are you trying to generate?
- What data do you have at @(& current.line, 15, 24) ?

Regards,
Rapha

Top
#21073 - 01/16/09 10:58 AM Re: showbarcode()
ldehan Offline
Junior Member

Registered: 04/17/06
Posts: 4
I am generating a barcode 128. the values change of course depending on what line you are on but this is an example 9400-00346-003.
FYI, I am able to generate and print a barcode with the showbarcode() function, its just that what is generated is not recognized by the barcode reader. On your test did you get your barcode reader to actually read it?
Louis

Top
#21074 - 01/16/09 11:35 AM Re: showbarcode()
stuartg Offline
OL Expert

Registered: 03/06/03
Posts: 713
Loc: Swindon, England
Showbarcode() produces a simple 128 barcode from your data. It does not add the start and stop characters or the checkdigit. If you (or your scanner) want these, you have to add them manually to your data.

Top
#21075 - 01/16/09 11:40 AM Re: showbarcode()
ldehan Offline
Junior Member

Registered: 04/17/06
Posts: 4
Thanks, thats what I figured was happening. I'm now trying to figure out how to add those. I inserted a barcode and converted it to Planet Press Talk object to get the code, just trying to figure out what each line does.
Louis

Top
#21076 - 01/16/09 02:11 PM Re: showbarcode()
ldehan Offline
Junior Member

Registered: 04/17/06
Posts: 4
Rapha

Top
#21077 - 01/16/09 02:25 PM Re: showbarcode()
Anonymous
Unregistered


Hi ldehan,

For future use, if you need to trim left and right, you can simply use trim(@(....)).

Olivier

Top


Moderator:  cosimo, OL Newsgroup Support