Hi,
Starting from the zip file we
have managed to generate the different parts of the barcodes (00 to 16) with
400 characters in each part.
In the last part (016) there's
no codebar being drawn.
Are we doing something wrong?
***************************
Aspose.BarCode.License license = new Aspose.BarCode.License();
license.SetLicense(@"C:\NET\Pruebas de
Aspose\PruebaZIPSucesiones\PruebaSucesiones\Aspose.Total.lic");
string[] trozos;
Aspose.BarCode.BarCodeBuilder b;
b = new Aspose.BarCode.BarCodeBuilder();
b.SymbologyType = Symbology.MacroPdf417;
b.Rows = 50;
b.Columns = 14;
b.Pdf417CompactionMode = Aspose.BarCode.Pdf417CompactionMode.Text;
b.Pdf417ErrorLevel = Aspose.BarCode.Pdf417ErrorLevel.Level1;
b.Pdf417Truncate = false;
byte[] textoBytes = File.ReadAllBytes("132829152008041702.ZIP");
string textoBase64 = Convert.ToBase64String(textoBytes);
int numTrozos = textoBase64.Length / 400;
int numRestoCaracteres = textoBase64.Length %
400;
int suma = 0;
if (numRestoCaracteres > 0)
{
trozos = new string[numTrozos+1];
for (int
contador = 0; contador < numTrozos; contador++)
{
trozos[contador] = textoBase64.Substring(contador * 400, 400);
}
trozos[numTrozos] = textoBase64.Substring(textoBase64.Length -
numRestoCaracteres, numRestoCaracteres);
numTrozos++;
}
else
{
trozos = new string[numTrozos];
for (int
contador = 0; contador < numTrozos; contador++)
{
trozos[contador] = textoBase64.Substring(contador * 400, 400);
}
}
//b.CodeLocation = Aspose.BarCode.CodeLocation.None;
for (int
contador = 0; contador < numTrozos; contador++)
{
b.MacroPdf417SegmentID = contador;
b.CodeText = trozos[contador];
if (contador + 1 == numTrozos)
{
b.MacroPdf417LastSegment = true;
b.MacroPdf417SegmentID = -1;
}
else
b.MacroPdf417LastSegment = false;
b.MacroPdf417FileID = 0;
b.Save("manchas0" + contador + ".bmp");
}
***************************
How much is the max lenght for each part ?
Thanks
P.S. We attach a zip file with
the mentioned elements.