using System; using System.Collections.Generic; using System.Linq; using System.Text; using Mesnac.Action.Base; using System.Windows.Forms; using Mesnac.Controls.Default; using Mesnac.Controls.Base; using Mesnac.Codd.Session; using System.Data; namespace Mesnac.Action.Feeding.Report { #region 报表设计器初始化 public class ReportDesigner : FeedingAction, IAction { /// /// 报表设计器初始化 /// /// /// /// /// public void Run(RuntimeParameter runtime) { base.RunIni(runtime); FastReport.Report report = new FastReport.Report(); Control c = GetControlById("MCReportDesigner1"); if (c == null) { base.LogError("{报表设计} 缺少name值为MCReportDesigner1报表查询控件..."); return; } if (c is MCReportDesigner) { MCReportDesigner mcrd = c as MCReportDesigner; mcrd.Report = report; mcrd.PerformLayout(); } } } #endregion }