這幾天,我研究了以下C#如何打印dataGridView中的數(shù)據(jù),在網(wǎng)上、圖書館搜索和查閱了一些內(nèi)容,現(xiàn)總結(jié)一下: //執(zhí)行打印窗體中的數(shù)據(jù)操作 private void toolStripButton2_Click(object sender, EventArgs e) printDialog1.ShowDialog(); //設(shè)置打印文檔 //在窗體中繪制要打印的數(shù)據(jù) private void printDocument1_PrintPage(object sender,System.Drawing.Printing.PrintPageEventArgs e) |
|
來(lái)自: 昵稱12149283 > 《c#編程的文章》