private void dcDesign_OpenSubreport(object sender, SubReportEventArgs e)
 {
     if (OnOpenSubreport != null)
     {
         OnOpenSubreport(this, e);
     }
 }
        private void OpenSubReportEvent(object sender, SubReportEventArgs e)
        {
            MDIChild mc = this.ActiveMdiChild as MDIChild;
            if (mc == null)
                return;

            string file = mc.Viewer.Folder;
            if (e.SubReportName[0] == Path.DirectorySeparatorChar)
                file = file + e.SubReportName;
            else
                file = file + Path.DirectorySeparatorChar + e.SubReportName + ".rdl";

            CreateMDIChild(file, null, true);
        }