Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] barcode encoding using code 128

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] barcode encoding using code 128
 Login/Join
 
Member
posted
does anyone have experience in WebFocus 8.x generating code 128 barcodes? my understanding is that we need to have a way to call an encoding algorithm to encode the data before using the stysheet to apply the font. looking for help or examples on how to call an external application (via url or java or c program) to the encoding

This message has been edited. Last edited by: FP Mod Chuck,


8.2.01m
Windows, All Outputs
 
Posts: 10 | Registered: June 05, 2017Report This Post
Virtuoso
posted Hide Post
Do you own Code 128 Fonts? WebFOCUS prints bar codes using fonts.

Check out this URL
https://techsupport.informatio...om/sps/82622550.html

This message has been edited. Last edited by: BabakNYC,


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
That's very hard to do in plain WebFOCUS, as you need to calculate a checksum (and decide on a code-page), for which you need to parse each character of the string to encode in sequence.

I have an NFR open with IBI to implement this, and it looks like they are indeed working on it.

In the meantime we created a custom library, written in C, to implement a function that returns a string encoded according to a font that we use. The specific combination of those two gets us our barcodes.

I've also written a sample implementation in Javascript that generates an SVG image (made up of 4 lines of different widths). That's mostly of academic use though...


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
@Babak: That works for Code39 fonts, but not for Code128.

Code39 simply wraps the string in asterisks and applies a font. There's no checksum, so barcodes can be read incorrectly or manipulated, and the character set is rather limited (the backslash character is not supported in Code39, for example).

Code128 remedies that by incorporating a checksum character in the barcode and having 3 different code pages (one for upper- and lowercase characters, one for uppercase only and control characters and one for numbers only).

It is possible to apply a font to a string to create a Code128 barcode, but you first have to create the correct string somehow. That's what the C library function in my previous post does. That's the hard part.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Virtuoso
posted Hide Post
Todd, based on Wep5622's insight, my suggestion is for you to open a ticket with IB tech support to throw your weight behind a new feature to support Code128.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] barcode encoding using code 128

Copyright © 1996-2020 Information Builders