Пример #1
0
 public static void PrintSet(System.Windows.Forms.DataGridView dgv, string title, string strSum)
 {
     if (dgv.DataSource == null)
     {
         MessageBox.Show("没有数据,无法选择输出格式", "提示");
         return;
     }
     model = GetModel.getMode(dgv, title, strSum);//获得打印参数
     Frm_Print_Set cs = new Frm_Print_Set(model, title);
     cs.ShowDialog();
 }
Пример #2
0
 public static void PrintSet128(DataGridViewKJ128 dgv, string title, string strSum)
 {
     if (dgv.DataSource == null)
     {
         MessageBox.Show("没有数据,无法选择输出格式", "提示");
         return;
     }
     DataGridView dgvs = dgv;
     model = GetModel.getMode(dgvs, title, strSum);//获得打印参数
     Frm_Print_Set cs = new Frm_Print_Set(model, title);
     cs.ShowDialog();
 }