private void printpage(object sender, PrintPageEventArgs e) { e.Graphics.PageUnit = gu; //unit used is graphicunit.millimeter. e.PageSettings.PaperSize = new System.Drawing.Printing.PaperSize(); e.PageSettings.PaperSize.Width = 75; e.PageSettings.PaperSize.Height = 15; System.Drawing.Image img = System.Drawing.Image.FromFile("C:/'" + barcode_txt + "'.jpg"); e.Graphics.DrawImage(img, 135, 60); e.Graphics.DrawString(barcode_txt, newfont, Brushes.Black, 190, 70); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)