If you need to print a barcode, I suggest to use 3 of 9 font.
In navision create a report and change the font on the text box to the font.
Then go to sourceexp of the text box and add '*' to the begging and the end.
Ahmed Rashed Amini
Independent Consultant/Developer
I use Code 128 because Code39 can handle fewer informations than Code 128.
With, for example, the font "Code128bWin" you can display your crypted text as barcode. But you must before Crypt your text to code 128. For example with this code:
Function Code128(PlainText : Text[250]) BarcodeText : Text[250]
//Text as Code128 --> ISO 15417
//CharSet B
StartStop[1] := 218;
StartStop[2] := 220;
CharStart := StartStop[1];
CharStop := StartStop[2];
Sum := 104;
FOR i := 1 TO STRLEN(PlainText) DO BEGIN
CurrChar := PlainText[i];
Sum := Sum + (i * (CurrChar - 32));
END;
CheckSumChar := Sum MOD 103;
CASE CheckSumChar OF
0:
CheckSumChar := 176;
1..94:
CheckSumChar := CheckSumChar + 32;
95..101:
CheckSumChar := CheckSumChar + 105;
102:
CheckSumChar := 213;
END;
BarcodeText := STRSUBSTNO('%1%2%3%4',CharStart,PlainText,CheckSumChar,CharStop);
EXIT(BarcodeText);
What do you mean with "fewer informations"? You can code lowercase characters and some special characters in 3/9 too. you just needs to use correct control character before each special char (there is basic 3/9 and extended 3/9 character set...)
I want to convert Item table's No. field, These field contain some upcase characters and some special characters. I install free 3 of 9 font, then I change then fontname to free 3 of 9 ,but it did't display.
These field contain some upcase characters and some special characters.
What are those special characters you mentioned? Do you mean '-', '/', '\' or some really special characters like control charactes?
If font isn't working for you, check http://www.mibuso.com/forum/viewtopic.php?t=1789&postdays=0&postorder=asc&start=0. We printed document numbers in Code 128 (ASCII and '-') and it worked fine.
Comments
In navision create a report and change the font on the text box to the font.
Then go to sourceexp of the text box and add '*' to the begging and the end.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
And the text must be in uppercase...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
With, for example, the font "Code128bWin" you can display your crypted text as barcode. But you must before Crypt your text to code 128. For example with this code:
Regards
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
http://en.wikipedia.org/wiki/Code_39
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Once you've imported the report run and ran it see if you see the font.
http://mibuso.com/blogs/ara3n/2008/04/24/barcode-128b/
It could because of double byte characters.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
As you can see, 3of9 support whole ASCII... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
What are those special characters you mentioned? Do you mean '-', '/', '\' or some really special characters like control charactes?
If font isn't working for you, check http://www.mibuso.com/forum/viewtopic.php?t=1789&postdays=0&postorder=asc&start=0. We printed document numbers in Code 128 (ASCII and '-') and it worked fine.