Latest Version 2.01
The attached project contains an example of a code module that writes a bar code in Code 128 format to a B4J Canvas. V1 is based on some code for B4A that did something similar. It does not require a bar code font as it creates the bar code by drawing the individual lines of the bar code as rectangles. I've updated the code to work with B4J's use of graphics.
The V2 code is loosely based on some VBNet code; I've improved the efficiency though and it now supports characters in ISO/IEC 8859-1 eg £
V2.01 Fixed bug in V2 where signed numbers were not properly encoded.
Derek
The attached project contains an example of a code module that writes a bar code in Code 128 format to a B4J Canvas. V1 is based on some code for B4A that did something similar. It does not require a bar code font as it creates the bar code by drawing the individual lines of the bar code as rectangles. I've updated the code to work with B4J's use of graphics.
The V2 code is loosely based on some VBNet code; I've improved the efficiency though and it now supports characters in ISO/IEC 8859-1 eg £
V2.01 Fixed bug in V2 where signed numbers were not properly encoded.
Derek
Attachments
Last edited: