Code:
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
Bitmap bm = new Bitmap(this.Panel1.Width, this.Panel1.Height);
Panel1.DrawToBitmap(bm, new Rectangle(0, 0, this.Panel1.Width, this.Panel1.Height));
e.Graphics.DrawImage(bm, 0, 0);
PageSetupDialog aPS = new PageSetupDialog();
aPS.Document = printDocument1;
}
mcn meka thama code eka meken Receipt eka print karama boda welane bn enne



