[]
IBarcode, IFontOption, ILabelOptionCodabar is a barcode that uses the characters A, B, C, D, +, -, :, ., /, $, and digits. This interface provides access to Codabar-specific barcode settings in addition to the common barcode, font, and label options defined by IBarcode, IFontOption, and ILabelOption.
worksheet.getRange("A1").setValue("B2345678B");
worksheet.getRange("B1").setFormula("=BC_CODABAR(A1)");
ICodabar codabar = (ICodabar) worksheet.getRange("B1").getValue();
int nwRatio = codabar.getNwRatio();
boolean checkDigit = codabar.getCheckDigit();
booleanintgetBackgroundColor, getCodeType, getColor, getQuietZoneBottom, getQuietZoneLeft, getQuietZoneRight, getQuietZoneTop, getValuegetFontFamily, getFontSize, getFontStyle, getFontTextAlign, getFontTextDecoration, getFontWeightgetLabelPosition, getShowLabelSpecifies whether the symbol needs a check digit. The default value is false.
worksheet.getRange("A1").setValue("B2345678B");
worksheet.getRange("B1").setFormula("=BC_CODABAR(A1)");
ICodabar codabar = (ICodabar) worksheet.getRange("B1").getValue();
boolean checkDigit = codabar.getCheckDigit();
true if the symbol requires a check digit; otherwise, false.This value represents the ratio between wide bars and narrow bars in the Codabar barcode. The supported values are 2 and 3. The default value is 3.
worksheet.getRange("A1").setValue("B2345678B");
worksheet.getRange("B1").setFormula("=BC_CODABAR(A1)");
ICodabar codabar = (ICodabar) worksheet.getRange("B1").getValue();
int nwRatio = codabar.getNwRatio();
2 or 3.