Skip to content

kevinvenclovas/Barcode-Sheet-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barcode-Sheet Generator

Easy generate Barcode-Sheets for print or online

Barcode-Sheets

Usage

Best pratices

Generate Barcode-Sheet with simple Settings and try every settings

Generate Simple Barcode-Sheet

byte[] sheet = new BarcodeSheetBuilder(new List<string> { "code1", "code2" }, PageSize.A4, 2, 1).Build();

Sheet with special column widths

//Sheet columns  must match cellWidths.Count() 
//Error on cellWidths.Count() != columns 

int columns = 3;
int rows = 1;
float cellWidths = new float[] { 50, 30, 20 };

byte[] sheet = new BarcodeSheetBuilder(new List<string> { "code1", "code2", "code3" }, PageSize.A4, columns, rows)
.SetCellPercentWidth(cellWidths)
.Build();

Generate Barcode-Sheet

byte[] sheet = new BarcodeSheetBuilder(new List<string> { "code1", "code2", "code3" }, PageSize.A4, 2, 1)
.SetPageMargins(0, 0, 5, 5)
.SetColumnPercentWidth(new float[] { 50, 30, 20 })
.SetCellPadding(25)
.SetBarCodeHeight(80) // !Read Troubleshoot!
.WithBarcodeText()
.WithBorder()
.Build();

Troubleshoot

Caution with the .SetBarCodeHeight(). When the Generated Barcode is higher than the cell height the barcode will not be show!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages