Barcode 128

Dirk
Member Posts: 6
Does anybody know how to create a code for Barcode 128 (especially 128B) in Financials?
My main problem in this matter is the conversion of values starting at 96 (these values can be needed when calculating the checksum). The values between 64 and 95 can easily be converted with a variable of type CHAR. But how do I convert the values starting at 96 (so called scancodes, like FNC2, FNC3, SHIFT)?
Thanks
My main problem in this matter is the conversion of values starting at 96 (these values can be needed when calculating the checksum). The values between 64 and 95 can easily be converted with a variable of type CHAR. But how do I convert the values starting at 96 (so called scancodes, like FNC2, FNC3, SHIFT)?
Thanks
0
Comments
-
We use a barcode font for this.
Al the specified things can be done, but you need some character translation in your c/al code.
You can find more info at http://www.barcodingfonts.com
Rgds
Benny GiebensRgds
Benny Giebens0 -
The barcode font is not the problem, the translation in C/AL is. I don't know how to translate the checksum (when it reaches values of 95 and higher)!0
-
I got around the problem by purchasing BarTender software from Seagull Scientific.
What you can do is to use a report to write an ascii file to the hard drive and then call Bartender at the end of the report.0 -
Not sure I understand why 96 is different than 95?-jp0
-
Hi.
It should be relatively simple to create an OCX to obtain a string representing the integer value passed as a parameter.
Can send you one, if you really need it.
Urmas
urmas.pill@rlk.ee0 -
To jp,
of course you're right. The problem also exists with value 95.
To Urmas,
it would be great if you could send me the OCX!
--> dirk.manders@datasave.de
Thanks to all of you!0 -
I'm sorry. What I was getting at is "what is the problem?"
Calculating Code128 is easiest in an array of integers, one for each character of the resulting barcode string, including start character and checksum.
Once you have the entire array calculated, you convert it to text.
Assuming
integer array x[30],
text string y len(30),
integer i,imax
The following code converts the array to text:
for i:= 1 to imax do
y := x;
-jp-jp0 -
One thing to look out for is the NUL character (code 0). Naivsion treats it like a string delimiter. I don't think that code 128 includes any NUL characters, but during your debug, it's something to watch out for.-jp0
-
I think the above code will not work!0
-
Will keep you posted about the results! It might take a while, because the font to print the barcodes has to be bought first.0
-
Thanks a lot! I can't believe it's as easy as that.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions