//Create a Barcode Professional object
Neodynamic.WebControls.BarcodeProfessional.BarcodeProfessional bcp = new Neodynamic.WebControls.BarcodeProfessional.BarcodeProfessional();
//Set the barcode symbology to Code 128
bcp.Symbology = Neodynamic.WebControls.BarcodeProfessional.Symbology.Code128;
//Set the value to encode
bcp.Code = "1234567890";
bcp.CodeFormatPattern = DateTime.Today.ToString();
//Barcode dimensions settings
bcp.BarHeight = 1.0f;
bcp.BarWidth = 0.01f;
//Resolution
float dpi = 300.0f;
//Target size in inches
System.Drawing.SizeF targetArea = new System.Drawing.SizeF(1.0f, 0.5f);
//Get the barcode image fitting the target area
System.Drawing.Image imgBarcode = bcp.GetBarcodeImage(dpi, targetArea);
//Save it on disk in PNG format
imgBarcode.Save(@"D:\temp\barcode128.png", System.Drawing.Imaging.ImageFormat.Png);
imgBarcode.Dispose();
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE