PrintDocument document = new PrintDocument(); BarcodeDraw bdraw = BarcodeDrawFactory.GetSymbology(BarcodeSymbology.Code128); System.Drawing.Image barcodeImage = bdraw.Draw("ABCVGHFTHJY", 50); document.PrintPage += delegate (object sender, PrintPageEventArgs e) { e.Graphics.DrawImage(barcodeImage, 0, 0); e.Graphics.DrawString("ABCVGHFTHJY", new Font("arial", 8), new SolidBrush(Color.Black), 0, 50); }; document.Print();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)