private void exportToolStripMenuItemExcel_Click(object sender, EventArgs e) { MDIChild mc = this.ActiveMdiChild as MDIChild; if (mc == null) return; mc.Export(fyiReporting.RDL.OutputPresentationType.Excel); return; }