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) { }
}
}