System.Drawing.Printing下得用来完成打印功能
空打印
public partial class Form1 : Form { PrintDocument printDocument = new PrintDocument(); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { printDocument.Print(); } }
1.打印设置
2.页面设置
3.打印预览
4.打印