Adding Barcodes to FormsYou can add barcodes to most forms by using the BC_Code39(ThisForm.______) function within the specified field. The following procedure will work with any of the modifiable forms of TransActPOS. The limiting factor will be the destination printer. Typically, laser and thermal printers will provide the best resolution of barcodes versus dot matrix printers.
Note: The "BC C39 2 to 1 Medium" font will print both alpha and numeric characters. "BC" within the font description indicates a Barcode font. BC C128 Medium will only print numeric values. If item number contains a non-numeric character and a BC C128 Medium is being used, an error will occur because the font can not translate the non-numeric character.
For instance, in the default gift card form, BC_Code39(ThisForm.cGftCrtNo) appears in numerous locations to print a barcode of the gift certificate number. If you edit the default form of Gift Cards within System | Form/Label Editor | Gift Card, the left-top portion of the form looks something like the screen below.
Double left click on the BC_Code39(ThisForm.cGftCrtNo) field and the following screen will reveal a bit more. The Report Expression field contains the following.
Note: Just adding the BC_Code39(ThisForm.______) is not enough. You have to specify barcode font for the newly designated field.
To apply a font to a field, left click on the field so that it is selected. Note the small boxes appearing of the field BC_Code39(ThisForm.cGftCrtNo).
Then select Format | Font.
The Font selection screen will appear, allowing you to select the appropriate font for the field. In this example, a variety of "BC C39" fonts appear. A sample of the font appears in the window provided, but experimentation is required to match the best font with your printer and scanner.
After selecting a font, press OK to close the window. You will now see the barcode format within the field.
Press Ctrl + W to save the form. If you have been modifying a gift certificate, reprint a gift certificate to test the new barcode feature.
Below is a portion of a reprinted gift certificate to show the presence of the new barcode.
Note: If referencing cItemID, you will need to trim off the leading spaces with the LTRIM() command.
i.e. BC_Code(LTRIM(cItemID))
|