void ICommandHandler.HandleCommand(ReportCommand command, object[] args) { XRDesignPanel panel = mdiController.ActiveDesignPanel; XRSubreport subreport = (XRSubreport)args[0]; if (subreport.ReportSource == null && String.IsNullOrEmpty(subreport.ReportSourceUrl)) { subreport.ReportSource = CreateReport(); } IWindowsService windowsSvc = panel.GetService(typeof(IWindowsService)) as IWindowsService; windowsSvc.EditSubreport(subreport); subreport.ReportSource = null; }