运行效果: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Printing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Fo
一.使用PrintDocument进行打印 using System; using System.Drawing; using System.Drawing.Printing; using System.Windows.Forms; namespace PrintTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object
1.封装好的辅助类: using System; using System.Data; using System.Drawing; using System.Drawing.Printing; using System.Windows.Forms; namespace RC.Finance { /// <summary> /// 打印,打印预览 /// </summary> public class PrintHelper { //以下用户可自定义 //当前要打印文本的字体及字号