Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            PrintPreviewDialog p = report.PreviewPrintReport();

            panel1.Controls.Add(p);
            p.Show();
            panel1.Refresh();
        }
Esempio n. 2
0
        private void PrintForm_Load(object sender, EventArgs e)
        {
            base.CheckUserPermission(this);
            PrintPreviewDialog p = report.PreviewPrintReport();

            this.Controls.Add(p);
            p.Show();
            //this.Refresh();
        }
Esempio n. 3
0
        private void PrintForm_Shown(object sender, EventArgs e)
        {
            PrintPreviewDialog p = report.PreviewPrintReport();

            this.Controls.Add(p);
            p.WindowState     = FormWindowState.Maximized;
            p.FormBorderStyle = FormBorderStyle.None;
            p.Show();
        }