fyiReporting.RdlDesign.RdlDesigner.menuFileNewReport_Click C# (CSharp) Method

menuFileNewReport_Click() private method

private menuFileNewReport_Click ( object sender, System e ) : void
sender object
e System
return void
        private void menuFileNewReport_Click(object sender, System.EventArgs e)
        {
            using (DialogDatabase dlgDB = new DialogDatabase(this))
            {
                dlgDB.StartPosition = FormStartPosition.CenterParent;
                //dlgDB.FormBorderStyle = FormBorderStyle.SizableToolWindow;

                // show modally
                dlgDB.ShowDialog();
                if (dlgDB.DialogResult == DialogResult.Cancel)
                    return;
                string rdl = dlgDB.ResultReport;

                // Create the MDI child using the RDL syntax the wizard generates
                MDIChild mc = CreateMDIChild(null, rdl, false);
                mc.Modified = true;
                // Force building of report names for new reports
                if (mc.DrawCtl.ReportNames == null) { }
            }
        }
RdlDesigner