Problem reading the generated barcode

AitorEG
Member Posts: 342
Hi everyone,
I'm, using NAV2013R2, and I'm generating a barcode in a report, with this utility:
http://www.archerpoint.com/blog/Posts/printing-barcodes-rtc-report
I'm generatin code128 barcodes. But I've seen, that the barcode can't be read if it is too small. The same barcode, but a little bigger, can be read. So, I thought that could be a problem of the generated BMP resolution. Is there any way to improve that resolution?
On the other hand, I also tried to generate the barcodes using different fonts I've downloaded. Even the resolutions looks realy good, the barcodes can't be read. And I think that this issue could be because of the data transformation. I directly wrtite a text, for example, "MF118.160", in the layout editor, and change the font to for exameple, code128.ttf. Should I introduce any charater befora/afeter my text, to convert the to the font?
Thank you very much for your help
I'm, using NAV2013R2, and I'm generating a barcode in a report, with this utility:
http://www.archerpoint.com/blog/Posts/printing-barcodes-rtc-report
I'm generatin code128 barcodes. But I've seen, that the barcode can't be read if it is too small. The same barcode, but a little bigger, can be read. So, I thought that could be a problem of the generated BMP resolution. Is there any way to improve that resolution?
On the other hand, I also tried to generate the barcodes using different fonts I've downloaded. Even the resolutions looks realy good, the barcodes can't be read. And I think that this issue could be because of the data transformation. I directly wrtite a text, for example, "MF118.160", in the layout editor, and change the font to for exameple, code128.ttf. Should I introduce any charater befora/afeter my text, to convert the to the font?
Thank you very much for your help
0
Answers
-
I'm making the conversion with this function:
TransformTextIntoBc128(pText : Text[250]) RetVal : Text[250] StartChar:='Ú'; StopChar:='Ü'; Checksum:=104; FOR i:=1 TO STRLEN(pText) DO BEGIN currentchar:=pText[i]; Checksum := Checksum +(i*(currentchar-32)); END; ChecksumChar:= Checksum MOD 103; ChecksumChar:= ChecksumChar+32; // convert SPACE to ALT+0128 pText:=CONVERTSTR(pText,' ','°'); RetVal:=STRSUBSTNO('%1%2%3%4',StartChar,pText,ChecksumChar,StopChar); EXIT(RetVal);
And I have installed the Code128bWin font,.Everything has been downlaoded from:
http://mibuso.com/downloads/barcode-128-with-fonts-sample
The barcode is still unreadable...
I add a image of the generated barcode:
0 -
We have also tried with this integration:
http://www.kauffmann.nl/2016/01/09/web-services-examples-part-3-generate-barcode/
Abd we can't read codes of 9 characters or more...
Any tip?
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