Free Support Forum - aspose.com

Code128

How do I use the check digit for Code128 so i can see something like this
(00) 0 06397C9 000000019 8 on top of the bar code?

Hi,

You can use CodeLocation property to specify the location of the codetext. Please refer to http://www.aspose.com/documentation/visual-components/aspose.barcode-for-.net-and-java/control-the-appearance-of-code-text.html for details. You can set CodeLocation to below as follows:

BarCodeBuilder bc=new BarCodeBuilder();
bc.CodeText="1234567";
bc.CodeLocation=CodeLocation.Above;

An alternate solution would be to set the CodeLocation to none and use CaptionAbove property. You can display formatted CodeText using caption. For details, please refer to http://www.aspose.com/documentation/visual-components/aspose.barcode-for-.net-and-java/manage-caption-of-the-barcode.html.