예제 #1
0
        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);
        }
예제 #2
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();
        }
예제 #3
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();
        }
예제 #4
0
        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, "");
        }