1.这个是用在PrintPage 事件里面
- private void test1ToolStripMenuItem_Click(object sender, EventArgs e)
- {
- PrintDocument doc = new PrintDocument();
- doc.PrintPage += Doc_PrintPage;
- doc.Print();
- }
- private void Doc_PrintPage(object sender, PrintPageEventArgs e)
- {
- _textControl.Print(2, e);
- }
复制代码
2.这个问题需要验证一下 |