这几天,我研究了以下C#如何打印dataGridView中的数据,在网上、图书馆搜索和查阅了一些内容,现总结一下: //执行打印窗体中的数据操作 private void toolStripButton2_Click(object sender, EventArgs e) printDialog1.ShowDialog(); //设置打印文档 //在窗体中绘制要打印的数据 private void printDocument1_PrintPage(object sender,System.Drawing.Printing.PrintPageEventArgs e) |
|
来自: 昵称12149283 > 《c#编程的文章》