Exemplo n.º 1
0
        private void printToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrintDataGridView printDataGridView = new PrintDataGridView(dataGridViewMain);

            printDataGridView.isRightToLeft = false;
            printDataGridView.Print();
        }
Exemplo n.º 2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            PrintDataGridView PrintDataGridView = new PrintDataGridView();

            PrintDataGridView.Print(dgvMember, "会员报表");



            //  DataGridViewPrint DataGridViewPrint = new DataGridViewPrint(dgvMember);

            //  printDocument1 = DataGridViewPrint.GetPrintDocument();

            //  PageSetupDialog  pageSetupDialog = new PageSetupDialog();
            //  pageSetupDialog.Document = printDocument1;
            //  pageSetupDialog.PageSettings.Landscape = true;

            ////  pageSetupDialog.PageSettings.PaperSize.PaperName = "A4Rotated";

            //  pageSetupDialog.ShowDialog();
            //  printPreviewDialog1 = new PrintPreviewDialog();
            //  printPreviewDialog1.Document = printDocument1;
            //  printPreviewDialog1.Height = 600;
            //  printPreviewDialog1.Width = 800;
            //  printPreviewDialog1.ShowDialog();



            //  this.printPreviewDialog1.Document = this.printDocument1;  //设置需要预览的文档
            // this.printPreviewDialog1.ShowDialog();//开始预览
        }
        private void buttonPrint_Click(object sender, EventArgs e)
        {
            var pr = new PrintDataGridView(this.dataGridView);

            pr.isRightToLeft = true;
            pr.ReportHeader  = this.label6.Text;
            pr.Print();
        }
Exemplo n.º 4
0
        private void button3_Click(object sender, EventArgs e)
        {
            PrintDataGridView pr = new PrintDataGridView(dataGridView1);

            pr.isRightToLeft = false;
            pr.ReportHeader  = "Продажи";
            pr.ReportFooter  = "OOO BookShop";
            pr.Print();
        }
Exemplo n.º 5
0
        private void btnImprimir_Click(object sender, EventArgs e)
        {
            PrintDataGridView pr = new PrintDataGridView(dataListado);

            pr.isRightToLeft = false;
            pr.ReportHeader  = "SISTEMA DE RECLUTAMIENTO DE PERSONAL(RRHH)";
            pr.ReportFooter  = "2018";
            pr.Print();
        }
Exemplo n.º 6
0
        private void btnImprimir_Click(object sender, EventArgs e)
        {
            PrintDataGridView pr = new PrintDataGridView(dataGridView1);

            dataGridView1.AutoResizeColumns();
            pr.isRightToLeft = false;

            pr.ReportHeader = "Reparto Nº" + txtReparto.Text;
            pr.ReportFooter = "Agua y Soda KALÚ- ROQUE PÉREZ";
            pr.Print();
        }
Exemplo n.º 7
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            if (dgvUseList.Rows.Count > 0)
            {
                PrintDataGridView.Print(dgvUseList, "按科室统计耗材使用情况", "打印日期:" + DateTime.Now, 1);
            }

            //this.printPreviewDialog1.Document = printDocument1;
            //if (printPreviewDialog1.ShowDialog() == DialogResult.OK)
            //    printDocument1.Print();
            //printPreviewDialog1.PrintPreviewControl.Zoom = 1.5;
            //printDocument1.DefaultPageSettings.PaperSize =
            //           new System.Drawing.Printing.PaperSize("K16", 737, 1020);
        }
Exemplo n.º 8
0
        private void btnImprimir_Click(object sender, EventArgs e)
        {
            bool btImprimir = true;

            if (btImprimir == true)
            {
                this.dataListado.Columns[10].Visible = false;
                this.dataListado.Columns[12].Visible = false;
                PrintDataGridView pr = new PrintDataGridView(dataListado);
                pr.isRightToLeft = false;
                pr.ReportHeader  = "SISTEMA DE RECLUTAMIENTO DE PERSONAL(RRHH)";
                pr.ReportFooter  = "2018";
                pr.Print();
            }
            btImprimir = false;
        }