I am trying to generate Barcode (code 128) with some text where items details will be displayed. I am able to generate an image of a Barcode (code 128) but unable to add text into it.
I've tried this following code to add text into that image; text has been added but while taking printout of that barcode nothing happens.
var bmp = Bitmap.FromFile(Application.StartupPath + "\\Barcode\\" + partno.Text + ".jpg");
var newImage = new Bitmap(bmp.Width, bmp.Height + 50);
var gr = Graphics.FromImage(newImage);
gr.DrawImageUnscaled(bmp, 0, 0);
Brush br = new SolidBrush(Color.Black);
Font font1 = new Font("Arial", 8, System.Drawing.FontStyle.Bold);
gr.DrawString(partno.Text, font1, br, 0, 75);
Font font2 = new Font("Arial", 7, System.Drawing.FontStyle.Regular);
gr.DrawString(txtname.Text, font2, br, 0, 95);
Font font3 = new Font("Arial", 7, System.Drawing.FontStyle.Regular);
gr.DrawString(txtdetails.Text, font3, br, 0, 105);
Font font4 = new Font("Arial", 8, System.Drawing.FontStyle.Bold);
gr.DrawString("Rs." + txtsellprice.Text, font4, br, 0, 115);
newImage.Save(Application.StartupPath + "\\Barcode\\" + partno.Text + "1.jpg");
Can anyone please give me code 128 Barcode font free download link so that i can generate the barcode using that font.
If anyone has some other idea please share.
Thanks in advance.