ITexSharp e Barcode.

lunedì 09 febbraio 2009 - 11.08

secks Profilo | Senior Member

Ciao a tutti.
Sto provando a stampare in PDF con iTextSharp dei barcode tipo EAN8.
Tutto ok ma lo scanner fa moltissima fatica a leggerli.
Se con tipo ean13 viene letto.
Qualcuno ha mail provato e potrebbe darmi una dritta?


s = _clsFun.CtrlDigit("2" + (string)x["lis_art"] + "0");
cEan.CodeType = BarcodeEAN.EAN8;
cEan.BarHeight = 10; //Altezza EAN
cEan.Size = 7; // Grandezza numero
cEan.Code = s; //(string)x["lis_ean"];
Image imgEan = cEan.CreateImageWithBarcode(cb, null, null);
imgEan.ScalePercent(100); // grandezza immagine
imgEan.Alignment = Element.ALIGN_BOTTOM;
cell = new Cell(new Phrase(new Chunk(imgEan, 0, 0)));

Ciao.
Paolo.
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5