23-11-13, 09:35 PM
23-11-13, 10:28 PM
السلام عليكم ارجو توضيح سؤالك
24-11-13, 03:02 AM
منقول
اضفprintDocument and printDialog control from toolbox.
من قائمة الادوات
اضف الزر
اضفprintDocument and printDialog control from toolbox.
من قائمة الادوات
كود :
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Bitmap img = new Bitmap(this.Width, this.Height); //define which is to print this.DrawToBitmap(img,new Rectangle(0,0,this.Width,this.Height)); Graphics g=e.Graphics; g.PageUnit=GraphicsUnit.Display; g.DrawImage(img,new RectangleF(0,0,this.Width,this.Height)); }كود :
private void button1_Click(object sender, EventArgs e) { printDocument1.Print(); }24-11-13, 11:36 PM
السلام عليكم
شكرا على المساعدة..
شكرا على المساعدة..