Goran Bibic

Goran Bibic

  • 454
  • 2.9k
  • 180.4k

Generate ean13 bar code C#

Nov 5 2020 4:31 AM
I have error in this line
  1. ean13.Code = BarcodeEAN.GetBarsEAN13(row.Cells[12].Value.ToString(), false, BarcodeEAN.EAN13); 
Error
 
everity Code Description Project File Line Suppression State
Error CS1501 No overload for method 'GetBarsEAN13' takes 3 arguments BSS C:\Users\GB\source\repos\BSS\BSS\7101_Proizvodni_Proces_Pregled.cs 5317 Active 
 
Complete code              
  1. BarcodeEAN ean13 = new BarcodeEAN();  
  2. ean13.CodeType = Barcode.EAN13;  
  3. ean13.ChecksumText = true;  
  4. ean13.GenerateChecksum = true;  
  5. ean13.Code = BarcodeEAN.GetBarsEAN13(row.Cells[12].Value.ToString(), false, BarcodeEAN.EAN13);  
  6. System.Drawing.Bitmap bm = new System.Drawing.Bitmap(ean13.CreateDrawingImage(System.Drawing.Color.Black, System.Drawing.Color.White)); 

Answers (7)