Hi ,
Can you please help me to understand of how the row/column works for the DATABAR_EXPANDED_STACKED.
I like to set the 7 rows for the barcode (String GTIN1 = “(01)00766907146318(17)180902(10)12347891012(17)991210(13)991211(11)991011(21)9990023295”;). but it only allow me to set the max rows is 6 with x-dim is 0.254f.
I want to know what is other parameter impact the row. for exampe: default column, encode data. also what is the segment for the databar barcode. thanks you very much.
String GTIN1 = “(01)00766907146318(17)180902(10)12347891012(17)991210(13)991211(11)991011(21)9990023295”;
// Generate and save the image to file
BarCodeBuilder builder = new BarCodeBuilder();
// Set code text
builder.setCodeText(GTIN1);
// Set Symbology type
builder.setEncodeType(EncodeTypes.DATABAR_EXPANDED_STACKED);
builder.setGraphicsUnit(GraphicsUnit.Millimeter);
builder.setAutoSize(true);
//builder.setColumns(6);
builder.setxDimension(0.254f);
builder.setBarHeight(65.02f);
int cols = builder.getColumns();
int rows = builder.getRows();
builder.setRows(7);
try {
builder.save("c:\\temp\\DATABAR_EXPANDED_STACKED-" + GTIN1+"-" + ".svg", BarCodeImageFormat.Svg);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}