[]
IBarcode, IFontOption, ILabelOptionCode 39 is a linear barcode that uses a total of nine bars to represent each symbol, including numeric characters, upper-case characters, and some special characters ("%","*","$","/",".","-","+"). This interface also provides barcode, font, and label options through IBarcode, IFontOption, and ILabelOption.
worksheet.getRange("A1").setValue("CODE39-100");
worksheet.getRange("B1").setFormula("=BC_CODE39(A1)");
ICode39 code39 = (ICode39) worksheet.getRange("B1").getValue();
boolean fullASCII = code39.getFullASCII();
booleanbooleanbooleanintgetBackgroundColor, getCodeType, getColor, getQuietZoneBottom, getQuietZoneLeft, getQuietZoneRight, getQuietZoneTop, getValuegetFontFamily, getFontSize, getFontStyle, getFontTextAlign, getFontTextDecoration, getFontWeightgetLabelPosition, getShowLabelThe default value is false.
worksheet.getRange("A1").setValue("CODE39-100");
worksheet.getRange("B1").setFormula("=BC_CODE39(A1,,,,,\"true\")");
ICode39 code39 = (ICode39) worksheet.getRange("B1").getValue();
boolean labelWithStartAndStopCharacter = code39.getLabelWithStartAndStopCharacter();
true if the label shows the start and stop character; otherwise, false.Specifies whether the symbol needs a check digit. The default value is false.
worksheet.getRange("A1").setValue("CODE39-100");
worksheet.getRange("B1").setFormula("=BC_CODE39(A1)");
ICode39 code39 = (ICode39) worksheet.getRange("B1").getValue();
boolean checkDigit = code39.getCheckDigit();
true if the Code 39 symbol requires a check digit; otherwise, false.This value represents the ratio between wide bars and narrow bars in the Code 39 barcode. The supported values are 2 and 3. The default value is 3.
worksheet.getRange("A1").setValue("CODE39-100");
worksheet.getRange("B1").setFormula("=BC_CODE39(A1)");
ICode39 code39 = (ICode39) worksheet.getRange("B1").getValue();
int nwRatio = code39.getNwRatio();
2 or 3.When this property is true, the barcode can encode ASCII characters beyond the standard Code 39 character set. The default value is false.
worksheet.getRange("A1").setValue("Code39+100");
worksheet.getRange("B1").setFormula("=BC_CODE39(A1,,,,,,,,TRUE)");
ICode39 code39 = (ICode39) worksheet.getRange("B1").getValue();
boolean fullASCII = code39.getFullASCII();
true if full ASCII is supported for Code 39; otherwise, false.