datagridview print
how to print data from datagridview after click on print button in a simple form
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhay ShankerPosted Jul 17, 2014, 11:39 PM
http://www.codeproject.com/Articles/43569/Printing-a-datagridview-in-C-NET
http://www.mindstick.com/Articles/2ea844ec-2b41-4a86-b931-fcbc6e4fb6c2/?Datagridview%20Printing%20in%20C
http://jeremycomer.com/blog/?p=64
Abhay ShankerPosted Jul 17, 2014, 11:38 PM
private void button2_Click(object sender, EventArgs e)
{
printDocument1.Print();
}
private void printDocument1_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
PaintEventArgs myPaintArgs = new PaintEventArgs(e.Graphics,
new Rectangle(new Point(0, 0), this.Size));
this.InvokePaint(dataGridView1, myPaintArgs);
}