private void button3_Click(object sender, EventArgs e) { PrintPreviewDialog p = report.PreviewPrintReport(); panel1.Controls.Add(p); p.Show(); panel1.Refresh(); }
private void PrintForm_Load(object sender, EventArgs e) { base.CheckUserPermission(this); PrintPreviewDialog p = report.PreviewPrintReport(); this.Controls.Add(p); p.Show(); //this.Refresh(); }
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(); }