コード例 #1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            frmReport rpt = new frmReport("CashFlow", (DataTable)myGrid1.DataSource);

            rpt.MdiParent = this.MdiParent;
            rpt.Show();
            rpt.BringToFront();
        }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: rwj42/MobileERP
        private void 生成报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var iCustem = new frmReport(ssNetwork)
            {
                TopLevel = false, Dock = DockStyle.Fill, Parent = panelFunctiron
            };

            iCustem.Show();
            iCustem.BringToFront();
            panelFunctiron.BringToFront();
        }
 private void btnLoad_Click(object sender, EventArgs e)
 {
     if (frm == null || frm.IsDisposed)
     {
         frm = new frmReport();
         frm.strDocumentNumber = cmbProject.Text;
         frm.reportType        = this.reportType;
         frm.Show();
     }
     frm.BringToFront();
 }