[]
IBarcode, IFontOption, ILabelOptionCode 128 条形码是一种线性条形码,表示高密度线性符号体系,可对文本、数字、各种功能以及完整的 ASCII 字符集(从 ASCII 0 到 ASCII 127)进行编码。它广泛用于企业内部管理、生产流程和物流控制系统。
此接口的实例通常由单元格返回,该单元格的值由 BC_CODE128 公式生成。此接口还通过 IBarcode、ILabelOption 和 IFontOption 包含条形码、标签和字体设置。
worksheet.getRange("A1").setValue("123456789");
worksheet.getRange("B1").setFormula("=BC_CODE128(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",1,\"bottom\",\"auto\",,\"normal\",\"normal\",\"none\",\"center\",12,10,10,0,0)");
ICode128 code128 = (ICode128) worksheet.getRange("B1").getValue();
String codeSet = code128.getCodeSet();
getBackgroundColor, getCodeType, getColor, getQuietZoneBottom, getQuietZoneLeft, getQuietZoneRight, getQuietZoneTop, getValuegetFontFamily, getFontSize, getFontStyle, getFontTextAlign, getFontTextDecoration, getFontWeightgetLabelPosition, getShowLabel此值确定用于编码条形码文本的 Code 128 代码集。支持的值为 "auto"、"A"、"B" 和 "C"。默认值为 "auto"。
worksheet.getRange("A1").setValue("123456789");
worksheet.getRange("B1").setFormula("=BC_CODE128(A1,\"rgb(0, 0, 0)\",\"rgb(255, 255, 255)\",1,\"bottom\",\"auto\",,\"normal\",\"normal\",\"none\",\"center\",12,10,10,0,0)");
ICode128 code128 = (ICode128) worksheet.getRange("B1").getValue();
String codeSet = code128.getCodeSet();