“Barcode is a machine-readable code in the form of numbers and a pattern of parallel lines of varying widths, printed on a commodity and used especially for stock control.” – This definition was taken from Google and it explains to most of the people out there what actually barcode is.
There are cases where users try to print their item barcode but getting disappointed result where the barcode did not input into the system or computer after being scanned. In order to avoid this, AutoCount produced a Print Bar Code plugin in order to overcome this. But today, AutoCount had discovered the secret to set this Barcode at report designer level, which means users will not need to install Print Bar Code plugin anymore.
What Users Need To Know
There will be certain things that a person will need to know in order to set this Barcode at report designer level:
- Barcode Printer DPI (Dot Per Inch)
- Report Measurement Unit
- How to calculate Barcode Module
- Character Set
Other than the above, users will need to aware that it is best to keep their barcode character to be less than 13 characters. This is because user might face some scanning barcode failure if the number of character is too long.
Barcode Printer DPI
Generally, DPI means that how many dots are there per inch, referring to the output resolution of a printer. It is quite similar to the screen resolution of a PC where the higher the value means the clearer the image will be.
In order to know how to set the barcode module, the very first thing that users have to know is their Barcode Printer DPI. This information can be found by going into your Device and Printers, select your Barcode Printer and then right click, choose Printer Properties. A dialog box will prompt and there will be some information about this printer.
Image above shows the maximum resolution of DPI that the current printer has
Report Measurement Unit
After knowing the Barcode Printer DPI, next will be Report Measurement Unit. This can only be found at Report Designer level. After entering into Report Designer, click on the “Report” at the Report Explorer where it list out the structure of the report. Then look at the Property grid for a property call Measurement Units under Behaviour. This Measurement Units indicate that current report is running under what measurement units which will be useful for calculating the barcode module after that. Currently the supported measurement units are Hundreds of Inch and Tenth of Millimetres.
*Please do not use the Pixel as measurement unit as the calculation of this measurement unit is not discovered yet.
Image above shows where to access the Report Properties and get the Measurement Units
How to Calculate Barcode Module
With the information such as Barcode Printer and Report Measurement Unit in hand, user able to perform this Barcode Module calculation in order to set the barcode module value for printing later on. This is the main factor that causes scanning of barcode to fail if it was not set properly.
There are 2 types of calculation, one will be based on Hundreds of Inch and another will be Tenth of Millimetres.
The image above shows the formula for the calculation of barcode module
After you’re able to calculate this barcode module, user is required to insert this value into their barcode setting.
*Remember to turn off Auto-Module in order to insert it manually.
Image above show the value 1.25123 is being inserted into the barcode properties
The last thing that is needed to know will be setting the character set of the barcode. By default AutoCount uses the symbology of Code 128 and AutoCount will use this as an example. Code 128 consists of 3 set of character set – Charset A, Charset B and Charset C. The differences of each character set are as below:
Charset A – Supports ASCII characters 00 to 95 (0-9, A-Z, Control Codes), Special Characters and FNC 1-4.
Charset B – Supports ASCII characters 32 to 127 (0-9, A-Z, a-z), Special Characters and FNC 1-4.
Charset C – Supports “00-99″ and certain Special Characters.
Depending on your Barcode characters, it must be set to the proper charset in order for the Barcode Printer to print correctly. In order to set character set, select the barcode and look for the properties Symbology, expand it and you can see there is a properties called Character set over there.
Image above shows where to set the Character set of the barcode
Image above shows the ASCII table from http://nerdywithchildren.com/teaching-your-kids-to-program-variables-data-types/
That’s the end of this post and the PDF document for this can be found from the tag link below: