public static void Print(System.Windows.Forms.DataGridView dgv, string title, string strSum) { if (dgv.DataSource == null) { MessageBox.Show("没有数据,无法打印", "提示"); return; } model = GetModel.getMode(dgv, title, strSum);//获得打印参数 FormPrint print = new FormPrint(model); print.CallPrintForm(dgv, title, strSum); }
public static void Print(DataGridViewKJ128 dgv, string title) { if (dgv.DataSource == null) { MessageBox.Show("没有数据,无法打印", "提示"); return; } DataGridView dgvs = dgv; model = GetModel.getMode(dgvs, title, "");//获得打印参数 FormPrint print = new FormPrint(model); print.CallPrintForm(dgv, title, ""); }