I have a situation here. I need to create a Windows card-based employee card structure using C # in Visual Studio 2010. The structure may contain shortcuts and image boxes with a white background. I had no problems creating it, but I also give the "Print" button in this form so that the user can print this card. I was looking for him, but found nothing concrete. Please help me.
namespace Employee_Card_Manager
{
public partial class Card : Form
{
public Card(String a, String b, String c, String d, String e, String f, String g, String h, String i)
{
InitializeComponent();
this.label2.Text = a;
this.label9.Text = b;
this.label10.Text = c;
this.label11.Text = d;
this.label12.Text = e;
this.label13.Text = f;
this.label14.Text = g;
this.label16.Text = h;
this.pictureBox1.Image = Image.FromFile(i);
Image myimg = Code128Rendering.MakeBarcodeImage(h, 2, true);
this.pictureBox2.Image = myimg;
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
The map template is as follows:

I placed the entire map structure on the control panel and set the panel background to white. Can you fill out the code that will print this card? Thanks
Azeem source
share